Attempt at a fix for url encoding issues with UTF8 chars. See #10249.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-10-25 14:50:58 +00:00
parent 6bcac04c29
commit 8cdb268183
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class WP {
// front. For path info requests, this leaves us with the requesting
// filename, if any. For 404 requests, this leaves us with the
// requested permalink.
$req_uri = str_replace($pathinfo, '', rawurldecode($req_uri));
$req_uri = str_replace($pathinfo, '', $req_uri);
$req_uri = trim($req_uri, '/');
$req_uri = preg_replace("|^$home_path|", '', $req_uri);
$req_uri = trim($req_uri, '/');