[wp-trac] Re: [WordPress Trac] #6697: Percent Encoding in URL
should be capital alphabets instead of small letters
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 24 04:32:21 GMT 2008
#6697: Percent Encoding in URL should be capital alphabets instead of small
letters
---------------------------------------+------------------------------------
Reporter: akky | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version: 2.5
Severity: major | Resolution:
Keywords: UTF-8, URL, normalization |
---------------------------------------+------------------------------------
Comment (by akky):
I have been using my quick patch for months on my Japanese WordPress blog,
and for me it is working. The patch is, wp-includes/formatting.php at the
end of the function sanitize_title_with_dashes(),
{{{
$title = trim($title, '-');
+ $title = preg_replace(
+ '/%([a-fA-F0-9]{2})/e',
+ "'%'.strtoupper('\\1')",
+ $title
+ );
return $title;
}}}
It is quite a symptomatic treatment though.
--
Ticket URL: <http://trac.wordpress.org/ticket/6697#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list