From 14c5f35862f7e6569d1cbf15e9dee1f830cfe282 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 7 Mar 2007 01:44:53 +0000 Subject: [PATCH] Use rawurldecode. fixes #3727 git-svn-id: https://develop.svn.wordpress.org/trunk@4979 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 a57eaa7c63..5cc42fe316 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -58,7 +58,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, '', urldecode($req_uri)); + $req_uri = str_replace($pathinfo, '', rawurldecode($req_uri)); $req_uri = trim($req_uri, '/'); $req_uri = preg_replace("|^$home_path|", '', $req_uri); $req_uri = trim($req_uri, '/');