[wp-trac] [WordPress Trac] #34202: esc_url() cannot handle IPv6 literal URLs in PHP < 5.4.7
WordPress Trac
noreply at wordpress.org
Wed Oct 7 23:44:49 UTC 2015
#34202: esc_url() cannot handle IPv6 literal URLs in PHP < 5.4.7
--------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Formatting | Version: 3.1
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
In PHP < 5.4.7, `parse_url()` cannot handle IPv6 literal URLs such as
`http://[::FFFF::127.0.0.1]/`. This means `esc_url()` cannot correctly
handle such URLs because it relies on `parse_url()` to separate the
domain/port from the path/query in order to determine whether to encode
square brackets or not.
Prior to [34920], `esc_url()` blindly stripped all square brackets and
didn't use `parse_url()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34202>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list