Opened 17 years ago
Closed 17 years ago
#9390 closed defect (bug) (fixed)
make_clickable() makes fake URLs clickables.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.8 | Priority: | normal |
| Severity: | minor | Version: | 2.8 |
| Component: | Template | Keywords: | has-patch tested |
| Focuses: | Cc: |
Description
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>.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Attached patch