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:
ryan 2006-09-19 03:05:08 +00:00
parent 5dc154c1e2
commit 8c9e11f11b
1 changed files with 1 additions and 1 deletions

View File

@ -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];