WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 18 months 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: reporter-feedback
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 (2)

#1 @SergeyBiryukov
18 months ago

  • Component changed from General to Permalinks
  • Keywords reporter-feedback added

Hi @jeongsu, welcome to Trac! Thanks for the report.

some permalink that contains non-alphanumeric characters not working.

Could you provide some examples? This might be related to (or a duplicate of) #10249 and #17450.

Note: See TracTickets for help on using tickets.