[Tickets #4946] Text_Filter_text2html trips up when links are surrounded in angle brackets

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Jan 26 18:53:02 PST 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4946
-----------------------------------------------------------------------
 Ticket             | 4946
 Created By         | Chuck Hagenbuch <chuck at horde.org>
 Summary            | Text_Filter_text2html trips up when links are surrounded in angle
                    | brackets
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Accepted
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


Chuck Hagenbuch <chuck at horde.org> (2007-01-26 18:53) wrote:

calling text2html filter on:
<http://css.maxdesign.com.au/listamatic/>;

results in:
&lt;<a href="http://css.maxdesign.com.au/listamatic/index.htm&gt";
target="_blank">http://css.maxdesign.com.au/listamatic/index.htm&gt</a>;;

because the <> are encoded before links are found, and & is legal inside
urls, so we match up to the ; when linkifying. Possible solution: find
urls, then call htmlspecialchars(), then replace previously found urls
with their linked replacements.




More information about the bugs mailing list