From 891363818522eb2afa72797b0d30431cccb98807 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 25 Oct 2010 14:50:58 +0000 Subject: [PATCH] Attempt at a fix for url encoding issues with UTF8 chars. See #10249. git-svn-id: https://develop.svn.wordpress.org/trunk@15960 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 7de27f6eea..b0c4c1ac2a 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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, '/');