[wp-trac] [WordPress Trac] #23922: make_clickable() breaks when colon in path

WordPress Trac noreply at wordpress.org
Wed Apr 3 00:41:39 UTC 2013


#23922: make_clickable() breaks when colon in path
-----------------------------+--------------------------
 Reporter:  Viper007Bond     |       Type:  defect (bug)
   Status:  new              |   Priority:  lowest
Milestone:  Awaiting Review  |  Component:  Formatting
  Version:                   |   Severity:  minor
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 `make_clickable()` doesn't like this string:

 {{{
 <a
 href="http://en.wikipedia.org/wiki/URI_scheme#tel:">http://en.wikipedia.org/wiki/URI_scheme#tel:</a>
 }}}

 It results in this HTML:

 {{{
 <a href="http://en.wikipedia.org/wiki/URI_scheme#tel:"><a
 href="http://en.wikipedia.org/wiki/URI_scheme#tel"
 rel="nofollow">http://en.wikipedia.org/wiki/URI_scheme#tel</a>:</a>
 }}}

 Specifically it's the colon that is causing the issue. It can be a part of
 the URL too, it doesn't have to be a part of an anchor.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23922>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list