[wp-trac] [WordPress Trac] #29886: WP_HTTP::make_absolute_url() treats schemeless URLs as relative
WordPress Trac
noreply at wordpress.org
Thu Oct 9 01:10:27 UTC 2014
#29886: WP_HTTP::make_absolute_url() treats schemeless URLs as relative
--------------------------+---------------------
Reporter: dd32 | Owner: dd32
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: HTTP API | Version: trunk
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/29886#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list