Make WordPress Core

Opened 6 years ago

#51916 new defect (bug)

Incorrect URL encoding and redirect in redirect_canonical

Reported by: pavoleichler Owned by:
Priority: normal Milestone: Awaiting Review
Component: Canonical Version: 5.5.3
Severity: normal Keywords:
Cc: Focuses:

Description

  1. Setup a site with pretty permalinks.
  2. Visit a URL in the following format, where p=10 must be a valid post ID:

​https://mywordpress.site/?p=10&a%26b%3dc=1

  1. WordPress core will redirect you to a cannonical URL. However it fails to escape the URL query correctly and you end up here:

​https://mywordpress.site/post-id-10-slug?a=b&c=1

Change History (0)

Note: See TracTickets for help on using tickets.