[wp-trac] Re: [WordPress Trac] #4570: Comment link cannot contain
IRIs
WordPress Trac
wp-trac at lists.automattic.com
Mon May 5 01:09:46 GMT 2008
#4570: Comment link cannot contain IRIs
-------------------------+--------------------------------------------------
Reporter: link92 | Owner: nbachiyski
Type: defect | Status: new
Priority: high | Milestone: 2.6
Component: General | Version: 2.0.10
Severity: critical | Resolution:
Keywords: needs-patch |
-------------------------+--------------------------------------------------
Comment (by guillep2k):
By RFC 3987 (http://tools.ietf.org/html/rfc3987#section-2.1), the unicode
characters outside the US-ASCII repertoire are not reserved, and therefore
cannot be used for syntactical purposes. This should make them suitable
for any URL and shouldn't pose a security problem (at least I hope so!).
I don't see how Wordpress can process these characters if it's not set up
for using UTF-8, but anyway here's a patch. It should be thoroughly
tested, though, because I had to modify the make_clickable() presentation
filter as well (used to filter comment_text when displaying comments).
--
Ticket URL: <http://trac.wordpress.org/ticket/4570#comment:15>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list