[wp-trac] [WordPress Trac] #16859: esc_url eats square brackets.
WordPress Trac
noreply at wordpress.org
Wed Oct 7 23:38:24 UTC 2015
#16859: esc_url eats square brackets.
--------------------------+--------------------------
Reporter: f00f | Owner: johnbillion
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Formatting | Version: 3.1
Severity: major | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by johnbillion):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"34920"]:
{{{
#!CommitTicketReference repository="" revision="34920"
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 tests.
Fixes #16859
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16859#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list