Bug 45184

Summary: hyperlinks in mail archives don't deal with all special html characters properly
Product: Documentation Reporter: Dan Langille <dan>
Component: Books & ArticlesAssignee: Wolfram Schneider <wosch>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dan Langille 2002-11-10 05:50:01 UTC
	
	If an email contains a URL embebbed within < and >, then the
	hyperlink created is incorrect.

Fix: 

Looking into it now.  Filing this in case someone is already
	familiar with the problem
How-To-Repeat: 	

	Example of the problem is at
	http://docs.freebsd.org/cgi/getmsg.cgi?fetch=45022+0+archive/2002/freebsd-newbies/20021103.freebsd-newbies

	And perhaps this URL <http://www.freebsd.org/>.
Comment 1 Dan Langille 2002-11-10 06:09:19 UTC
doh... wrong email address there, that won't work.  Try me at this 
address instead.
-- 
Dan Langille : http://www.langille.org/
Comment 2 Dan Langille 2002-11-10 07:09:56 UTC
The problem is on line 229 :

$text =~ 
s/(http|https|ftp|gopher|mailto|news|file)(:[^\s]*?\/?)(\W?\s)/<a 
href="$1$2">$1$2<\/a>$3/goi;

It's the (\W?\s) which needs to change.  It does not recognize that 
"&gt;" should terminate the URL.
-- 
Dan Langille : http://www.langille.org/
Comment 3 Wolfram Schneider freebsd_committer freebsd_triage 2002-11-12 10:19:06 UTC
Responsible Changed
From-To: freebsd-www->wosch

wosch is the maintainer of the web mail archives.
Comment 4 Wolfram Schneider freebsd_committer freebsd_triage 2003-03-11 15:23:03 UTC
State Changed
From-To: open->closed

Fixed in rev 1.35 www/en/cgi/getmsg.cgi 
thanks!