[wp-trac] [WordPress Trac] #9390: make_clickable() makes fake URLs
clickables.
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 25 00:50:32 GMT 2009
#9390: make_clickable() makes fake URLs clickables.
--------------------------+-------------------------------------------------
Reporter: piouPiouM | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version:
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
If a string contains the words "ftp.", "www." or "http://" (and its SSL
variant), make_clickable() will convert them into clickable links.
Actual results:
{{{
ftp. => <a rel="nofollow" href="http://ftp">http://ftp</a>.
www. => <a rel="nofollow" href="http://www">http://www</a>.
http:// => <a rel="nofollow" href="http://">http://</a>
https:// => <a rel="nofollow" href="https://">https://</a>
ftp.example.com. => <a rel="nofollow"
href="http://ftp.example.com">http://ftp.example.com</a>.
}}}
Expected results:
{{{
ftp. => ftp.
www. => www.
http:// => http://
https:// => https://
ftp.example.com. => <a rel="nofollow"
href="http://ftp.example.com">http://ftp.example.com</a>.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9390>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list