[wp-trac] [WordPress Trac] #45315: Canonical redirection should compare URLs taking encoding into account

WordPress Trac noreply at wordpress.org
Fri Nov 9 21:12:55 UTC 2018


#45315: Canonical redirection should compare URLs taking encoding into account
--------------------------+------------------------------
 Reporter:  straussd      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:  trunk
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by straussd):

 * severity:  major => minor


Comment:

 I created [https://github.com/davidstrauss/wp-rebuild-url/ a workaround]
 that's possible to prepend to {{{wp-config.php}}} or use with PHP's built-
 in prepend functionality. It reprocesses the query string to produce one
 with equivalent meaning (after decoding) but meeting the expectations of
 the canonical URL component.

 The re-encoding method in the workaround should also have no false
 positives (in the sense of causing the canonical redirection logic to not
 redirect when it should).

 Dropping severity to "minor" given the workaround.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45315#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list