[wp-trac] [WordPress Trac] #16859: esc_url eats square brackets.
WordPress Trac
noreply at wordpress.org
Tue Sep 29 00:40:32 UTC 2015
#16859: esc_url eats square brackets.
--------------------------+--------------------------
Reporter: f00f | Owner: johnbillion
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.4
Component: Formatting | Version: 3.1
Severity: major | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Comment (by johnbillion):
In [changeset:"34674"]:
{{{
#!CommitTicketReference repository="" revision="34674"
Avoid stripping square brackets from URLs, and instead correctly encode
them.
Square brackets must be encoded in the path, path parameters, query
parameters, and fragment, but must not be encoded in anything up to the
domain and port.
Adds a bunch of tests, including square brackets in query parameters, IPv6
URLs, and several other permutations.
See #16859
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16859#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list