[wp-trac] [WordPress Trac] #17450: Almost pretty permalinks with non-ASCII characters do not work in Apache
WordPress Trac
wp-trac at lists.automattic.com
Thu May 26 05:56:36 UTC 2011
#17450: Almost pretty permalinks with non-ASCII characters do not work in Apache
-------------------------------------+------------------------------
Reporter: peaceablewhale | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.1.2
Severity: major | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------------------
Changes (by solarissmoke):
* keywords: => has-patch needs-testing
Comment:
The problem is not just with Apache. Here's the issue: `PATH_INFO` is
(according to the CGI spec) supplied url-decoded, but `REQUEST_URI` us
url-encoded. !Wordpress does string comparisons on these two, which is
fine when there are only ascii characters in the URL, but fails when there
are others.
Here is a patch that works for me. I imagine it will need some testing to
make sure the behaviour is consistent in all environments.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17450#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list