Encode percent to avoid broken permalinks. Props majelbstoat. fixes #569
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3477651fdc
commit
6b4ffb78eb
|
@ -1503,7 +1503,7 @@ class WP {
|
|||
|
||||
$pathinfo = $_SERVER['PATH_INFO'];
|
||||
$pathinfo_array = explode('?', $pathinfo);
|
||||
$pathinfo = $pathinfo_array[0];
|
||||
$pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
|
||||
$req_uri = $_SERVER['REQUEST_URI'];
|
||||
$req_uri_array = explode('?', $req_uri);
|
||||
$req_uri = $req_uri_array[0];
|
||||
|
|
Loading…
Reference in New Issue