[wp-trac] [WordPress Trac] #16859: Square brackets are removed from links in blogroll
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 16 08:16:01 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 |
--------------------------+------------------------------
Comment (by f00f):
Replying to [comment:1 ldebrouwer]:
> 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!
Is it possible to wrap a urlencode() around the URL before escaping it?
Didn't have a look at the code yet, so don't know if that makes sense.
> If you take a look at the URL spec ( http://www.w3.org/Addressing/URL
/url-spec.txt ) you can read:
>
> [...]
True (wasn't aware of that, thanks).
However, the PHP FAQ suggests using square brackets for form fields to
create arrays ( http://www.php.net/manual/en/faq.html.php#faq.html.arrays
). Also, a similar problem came up in ticket:12690, so I thought it might
be interesting.
> I don't know if you've copied the URL from somewhere but the brackets
definitely shouldn't be there.
The URL is generated by the (IMHO popular) tt_news extension for Typo3.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16859#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list