6.0.0-beta1
7/8/25

[#4946] Text_Filter_text2html trips up when links are surrounded in angle brackets
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 01/27/2007 (6737 days ago)
Due
Updated 12/05/2007 (6425 days ago)
Assigned 10/01/2007 (6490 days ago)
Resolved 12/05/2007 (6425 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/05/2007 01:16:01 AM Jan Schneider Comment #3
Assigned to Jan Schneider
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Fixed in CVS and Horde 3.2.
10/01/2007 11:32:47 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
06/20/2007 03:32:52 AM Chuck Hagenbuch Comment #2 Reply to this comment
There's a (failing) test for this issue now in the Text_Filter package.
01/27/2007 02:53:01 AM Chuck Hagenbuch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Text_Filter_text2html trips up when links are surrounded in angle brackets
Queue ⇒ Horde Framework Packages
State ⇒
Reply to this comment
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.

Saved Queries