WordPress.org

Make WordPress Core

Opened 5 months ago

#51916 new defect (bug)

Incorrect URL encoding and redirect in redirect_canonical

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

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.