[wp-trac] [WordPress Trac] #18685: GET Requests with hostname in them causes wrong redirect

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 7 08:49:02 UTC 2011


#18685: GET Requests with hostname in them causes wrong redirect
------------------------------------+------------------------------
 Reporter:  Ueland                  |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------
Changes (by solarissmoke):

 * keywords:  needs-patch => has-patch dev-feedback


Comment:

 Confirmed that this happens when you use an absolute URI in the GET
 request. !WordPress assumes (incorrectly it seems) that `REQUEST_URI` will
 never contain a hostname.

 POC patch attached - although this issue has never come up before
 (probably because most clients are HTTP/1.1 compliant in this regard and
 send proper requests - the requirement to accept a fully qualified address
 is only for backward compatibility with HTTP/1.0), so I'm not sure whether
 the real bug lies with the client.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18685#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list