[wp-trac] [WordPress Trac] #16859: Square brackets are removed from links in blogroll
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 15 23:51:34 UTC 2011
#16859: Square brackets are removed from links in blogroll
--------------------------+------------------------------
Reporter: f00f | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: minor | Resolution:
Keywords: 2nd-opinion |
--------------------------+------------------------------
Changes (by ldebrouwer):
* cc: ldebrouwer (added)
* keywords: needs-patch => 2nd-opinion
Comment:
To achieve this we would need to alter esc_url which I'm pretty sure is
not going to happen because URLs containing brackets shouldn't be floating
around and should always be encoded!
If you take a look at the URL spec ( http://www.w3.org/Addressing/URL/url-
spec.txt ) you can read:
"The 'national' and 'punctuation' characters do not appear in any
productions and therefore may not appear in URLs.
national { | } | vline | [ | ] | \ | ^ | ~
punctuation < | >"
I don't know if you've copied the URL from somewhere but the brackets
definitely shouldn't be there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16859#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list