Ticket #10249: 10249.4.patch
File 10249.4.patch, 1.2 KB (added by , 13 years ago) |
---|
-
wp-includes/class-wp.php
159 159 // front. For path info requests, this leaves us with the requesting 160 160 // filename, if any. For 404 requests, this leaves us with the 161 161 // requested permalink. 162 $req_uri = str_replace( $pathinfo, '', $req_uri);162 $req_uri = str_replace( $pathinfo, '', rawurldecode($req_uri) ); 163 163 $req_uri = trim($req_uri, '/'); 164 164 $req_uri = preg_replace("|^$home_path|", '', $req_uri); 165 165 $req_uri = trim($req_uri, '/'); … … 199 199 $request_match = $req_uri . '/' . $request; 200 200 201 201 if ( preg_match("#^$match#", $request_match, $matches) || 202 preg_match("#^$match#", urldecode($request_match), $matches) ) { 202 preg_match("#^$match#", urldecode($request_match), $matches) || 203 preg_match("#^$match#", strtolower( rawurlencode($request_match) ), $matches) ) { 203 204 204 205 if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$([^&\[]+)\[([0-9]+)\]/', $query, $varmatch ) ) { 205 206 // this is a verbose page match, lets check to be sure about it