[wp-trac] [WordPress Trac] #14993: make_clickable issue with ! character in URL

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 17 18:58:02 UTC 2010


#14993: make_clickable issue with ! character in URL
--------------------------+-------------------------------------------------
 Reporter:  lancewillett  |       Owner:  westi   
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  3.1     
Component:  Formatting    |     Version:  3.0.1   
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------
Changes (by dossy):

 * cc: dossy@… (added)


Comment:

 I think the behavior of least surprise is to treat "reserved" characters
 per RFC3986 as part of the URL *if and only if* it isn't followed by
 whitespace.  This is necessary but not sufficient, as what would happen
 with this URL would be surprising:

 http://www.google.com/?!

 The URL would be treated as "http://www.google.com/?" - since "!" is
 followed by whitespace.  However, did the user intend the URL to be
 "http://www.google.com/" followed by "?!" as punctuation?  Or, should both
 the "?!" have been part of the linked URL?

 This kind of "intention inference" is really tough.  I think there will
 always be cases where it "does the wrong thing" (not what the author
 intended) ...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14993#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list