[wp-trac] [WordPress Trac] #28001: WP_Http still fails on some requests with relative url redirects

WordPress Trac noreply at wordpress.org
Thu Oct 9 01:10:26 UTC 2014


#28001: WP_Http still fails on some requests with relative url redirects
--------------------------+---------------------
 Reporter:  DrLightman    |       Owner:  dd32
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  HTTP API      |     Version:  3.9
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"29861"]:
 {{{
 #!CommitTicketReference repository="" revision="29861"
 Handle deficiencies in PHP's parse_url in older versions of PHP (<5.4.7)
 in WP_HTTP::make_absolute_url().

 In older versions of PHP:
 - parse_url() will fail to parse a url where the scheme break (://) is
 present in a relative URL's path
 - parse_url() will include the hostname of a schemeless URL in the path
 component

 This handles those two types of URL's by correcting the response from
 parse_url().

 Fixes #28001, #29886
 }}}

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


More information about the wp-trac mailing list