From dan@undef.unixathome.org Sat Nov 9 21:47:55 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15F3B37B401 for ; Sat, 9 Nov 2002 21:47:55 -0800 (PST) Received: from undef.unixathome.org (bast.unixathome.org [216.187.105.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DBAA43E4A for ; Sat, 9 Nov 2002 21:47:54 -0800 (PST) (envelope-from dan@undef.unixathome.org) Received: from undef.unixathome.org (localhost [127.0.0.1]) by undef.unixathome.org (8.12.5/8.12.5) with ESMTP id gAA5lqss098695 for ; Sun, 10 Nov 2002 00:47:52 -0500 (EST) (envelope-from dan@undef.unixathome.org) Received: (from dan@localhost) by undef.unixathome.org (8.12.5/8.12.5/Submit) id gAA5lqgS098693; Sun, 10 Nov 2002 00:47:52 -0500 (EST) Message-Id: <200211100547.gAA5lqgS098693@undef.unixathome.org> Date: Sun, 10 Nov 2002 00:47:52 -0500 (EST) From: Dan Langille Reply-To: Dan Langille To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: hyperlinks in mail archives don't deal with all special html characters properly X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 45184 >Category: www >Synopsis: hyperlinks in mail archives don't deal with all special html characters properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: wosch >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 09 21:50:01 PST 2002 >Closed-Date: Tue Mar 11 07:24:37 PST 2003 >Last-Modified: Tue Mar 11 07:24:37 PST 2003 >Originator: Dan Langille >Release: FreeBSD 4.6-STABLE i386 >Organization: The FreeBSD Diary >Environment: System: FreeBSD undef.unixathome.org 4.6-STABLE FreeBSD 4.6-STABLE #1: Wed Sep 4 11:09:37 EDT 2002 root@undef.unixathome.org:/usr/src/sys/compile/UNDEF i386 >Description: If an email contains a URL embebbed within < and >, then the hyperlink created is incorrect. >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 . >Fix: Looking into it now. Filing this in case someone is already familiar with the problem >Release-Note: >Audit-Trail: From: "Dan Langille" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: www/45184: hyperlinks in mail archives don't deal with all special html characters properly Date: Sun, 10 Nov 2002 01:09:19 -0500 doh... wrong email address there, that won't work. Try me at this address instead. -- Dan Langille : http://www.langille.org/ From: "Dan Langille" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: www/45184: hyperlinks in mail archives don't deal with all special html characters properly Date: Sun, 10 Nov 2002 02:09:56 -0500 The problem is on line 229 : $text =~ s/(http|https|ftp|gopher|mailto|news|file)(:[^\s]*?\/?)(\W?\s)/$1$2<\/a>$3/goi; It's the (\W?\s) which needs to change. It does not recognize that ">" should terminate the URL. -- Dan Langille : http://www.langille.org/ Responsible-Changed-From-To: freebsd-www->wosch Responsible-Changed-By: wosch Responsible-Changed-When: Tue Nov 12 02:19:06 PST 2002 Responsible-Changed-Why: wosch is the maintainer of the web mail archives. http://www.freebsd.org/cgi/query-pr.cgi?pr=45184 State-Changed-From-To: open->closed State-Changed-By: wosch State-Changed-When: Tue Mar 11 07:23:03 PST 2003 State-Changed-Why: Fixed in rev 1.35 www/en/cgi/getmsg.cgi thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=45184 >Unformatted: