[wp-trac] [WordPress Trac] #39670: urlencoded non-alphanumeric permalink
WordPress Trac
noreply at wordpress.org
Mon Jan 23 16:47:16 UTC 2017
#39670: urlencoded non-alphanumeric permalink
--------------------------+-----------------------------
Reporter: jeongsu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I don't know it is the problem of wordpress or not. It may yes or it may
other problem like server or php setting.
When I update new version of wordpress, some permalink that contains non-
alphanumeric characters not working. Because $req_uri of
WP::parse_request() in class-wp.php has urlencoded.
So I think it's better to urldecode to proceed parsing.
{{{#!php
list( $req_uri ) = explode( '?',
$_SERVER['REQUEST_URI'] );
$req_uri = urldecode($req_uri); // added to fix
urlencoded permalink
$self = $_SERVER['PHP_SELF'];
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39670>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list