Changeset 3523

Show
Ignore:
Timestamp:
02/13/06 07:04:14 (3 years ago)
Author:
ryan
Message:

get_page_by_path() tweak.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r3522 r3523  
    666666function get_page_by_path($page_path) { 
    667667    global $wpdb; 
    668  
    669     $page_path = str_replace('%2F', '/', urlencode(urldecode($page_path))); 
     668    $page_path = rawurlencode(urldecode($page_path)); 
     669    $page_path = str_replace('%2F', '/', $page_path); 
     670    $page_path = str_replace('%20', ' ', $page_path); 
    670671    $page_paths = '/' . trim($page_path, '/'); 
    671672    $leaf_path  = sanitize_title(basename($page_paths));