[wp-hackers] Unicode url rewriting using add_rewrite_rule()

Otto otto at ottodestruct.com
Wed Dec 12 21:10:59 UTC 2012


On Wed, Dec 12, 2012 at 1:55 PM, Deepak Mittal <dpac.mittal2 at gmail.com> wrote:
> We are using urldecode() before matching in class-wp.php, so its not
> percent encoded.

Umm, doesn't appear to be the case, because the code in class-wp.php
actually tries it both ways.

Line 204-205:

if ( preg_match("#^$match#", $request_match, $matches) ||
	preg_match("#^$match#", urldecode($request_match), $matches) ) {


-Otto


More information about the wp-hackers mailing list