Summary | Text_Filter_text2html trips up when links are surrounded in angle brackets |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | chuck (at) horde (dot) org |
Created | 2007-01-27 (5111 days ago) |
Due | |
Updated | 2007-12-05 (4799 days ago) |
Assigned | 2007-10-01 (4864 days ago) |
Resolved | 2007-12-05 (4799 days ago) |
Milestone | |
Patch | No |
Assigned to Jan Schneider
Taken from
State ⇒ Resolved
State ⇒ Assigned
Type ⇒ Bug
State ⇒
Priority ⇒ 1. Low
Summary ⇒ Text_Filter_text2html trips up when links are surrounded in angle brackets
Queue ⇒ Horde Framework Packages
<http://css.maxdesign.com.au/listamatic/>;
results in:
<<a href="http://css.maxdesign.com.au/listamatic/index.htm>";
target="_blank">http://css.maxdesign.com.au/listamatic/index.htm></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.