[wp-trac] [WordPress Trac] #51916: Incorrect URL encoding and redirect in redirect_canonical

WordPress Trac noreply at wordpress.org
Wed Dec 2 13:50:46 UTC 2020


#51916: Incorrect URL encoding and redirect in redirect_canonical
--------------------------+-----------------------------
 Reporter:  pavoleichler  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:  5.5.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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
 3. 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51916>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list