[wp-trac] [WordPress Trac] #16859: esc_url eats square brackets.
WordPress Trac
noreply at wordpress.org
Tue Sep 29 03:47:33 UTC 2015
#16859: esc_url eats square brackets.
--------------------------+-----------------------------
Reporter: f00f | Owner: johnbillion
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: Future Release
Component: Formatting | Version: 3.1
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Comment (by dd32):
One method could be to finally move `WP_HTTP::parse_url()` to
`wp_parse_url()` and use that instead.
https://3v4l.org/lWQ4p is a version of that which includes half of a fix
for an edge-case (If the input path is protocolless and doesn't contain a
path component, then `WP_HTTP::parse_url()` will report `/` as the path)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16859#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list