Make WordPress Core

Changeset 4893


Ignore:
Timestamp:
02/20/2007 01:27:37 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.