Changeset 4893

Show
Ignore:
Timestamp:
02/20/07 01:27:37 (1 year ago)
Author:
ryan
Message:

decode req uri when processing pathinfo permalinks. Props Kirin_Lin. fixes #3727

Files:

Legend:

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

    r4779 r4893  
    5959            // filename, if any.  For 404 requests, this leaves us with the 
    6060            // requested permalink. 
    61             $req_uri = str_replace($pathinfo, '', $req_uri); 
     61            $req_uri = str_replace($pathinfo, '', urldecode($req_uri)); 
    6262            $req_uri = trim($req_uri, '/'); 
    6363            $req_uri = preg_replace("|^$home_path|", '', $req_uri);