In "Filtered HTML" input format (HTML Filter + URL filter), if a URL is followed immediately by a filtered tag, it is not changed to a hyperlink.
E.g. http://drupal.org/![]()
This appears to be because the URL filter runs before the HTML filter, and the IMG tag breaks the regex.
Comments
Comment #1
lyricnz commentedHehehe, this issue report actually demonstrates the problem. The markup I put in the body actually read
but a URL like that would normally be highlighted. Test http://drupal.org/ test.
Comment #2
lyricnz commentedPS: this bug doesn't happen with Drupal 7.
Comment #3
lyricnz commentedBump. Annoying bug.
Comment #4
Sepero commentedHere's a fix. Go into modules/filter/filter.module and replace the function _filter_url with this:
It fixes all these open bugs:
https://drupal.org/node/550464
https://drupal.org/node/2016089
https://drupal.org/node/1899246
https://drupal.org/node/1480992
https://drupal.org/node/1055864
It also fixes unknown/unmarked bugs:
Can't use foreign characters in email addresses.
Can't use many valid characters like '$%' in email addresses.
Can't preceed www web addresses with an html break.
Many html codes can't be used to end a url or email link.