Encode percent to avoid broken permalinks. Props majelbstoat. fixes #569
git-svn-id: http://svn.automattic.com/wordpress/trunk@4195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5dc154c1e2
commit
8c9e11f11b
|
@ -111,7 +111,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