[wp-trac] [WordPress Trac] #33821: redirect_canonical does not consider port in $compare_original

WordPress Trac noreply at wordpress.org
Thu Jun 12 23:35:20 UTC 2025


#33821: redirect_canonical does not consider port in $compare_original
-------------------------------------------------+-------------------------
 Reporter:  willshouse                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Canonical                            |     Version:  2.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  test-info close                                |
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 Replying to [comment:24 willshouse]:
 > I suppose this occurs so seldom that we just choose not to fix it. After
 all, @siliconforks what mentions about the HTTP specification and how it
 "should" always include a non-standard port number is true. RFC 7230,
 Section 5.4 "Host" and from Section 2.7.1 "http URI"

 Vouch for this issue, I must say that I'm currently pushing a weird ticket
 on HTTP1.0 specification for an issue with empty Host Header. A very
 difficult scenario that I've been able to reproduce consistently but not
 easily (with any good server like Nginx this is impossible, needed to go
 into Apache2 casting http1.0 requests). This #63316

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


More information about the wp-trac mailing list