Opened 8 years ago
Last modified 4 years ago
#39670 new defect (bug)
urlencoded non-alphanumeric permalink
Reported by: | jeongsu | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
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.
list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
$req_uri = urldecode($req_uri); // added to fix urlencoded permalink
$self = $_SERVER['PHP_SELF'];
Change History (3)
#2
@
8 years ago
I add some parameter to test this issue.
- urldecode enabled link : http://bmp.pe.kr/blog/index.php/2013/01/02/%ea%b8%80-%ec%9d%bd%ec%9d%84-%ec%88%98-%ec%97%86%eb%8a%94-%eb%ac%b8%ec%a0%9c-%ed%95%b4%ea%b2%b0/
- urldecode disabled link : http://bmp.pe.kr/blog/index.php/2013/01/02/%ea%b8%80-%ec%9d%bd%ec%9d%84-%ec%88%98-%ec%97%86%eb%8a%94-%eb%ac%b8%ec%a0%9c-%ed%95%b4%ea%b2%b0/?urldecode=false
You can see the value of $req_url from the html source
Note: See
TracTickets for help on using
tickets.
Hi @jeongsu, welcome to Trac! Thanks for the report.
Could you provide some examples? This might be related to (or a duplicate of) #10249 and #17450.