Date: Tue, 14 May 2002 16:40:03 -0700 (PDT) From: Tony Finch <fanf@freebsd.org> To: freebsd-doc@FreeBSD.org Subject: Re: docs/35222: mailing list archive URL regexp suboptimal Message-ID: <200205142340.g4ENe3K90901@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/35222; it has been noted by GNATS. From: Tony Finch <fanf@freebsd.org> To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: docs/35222: mailing list archive URL regexp suboptimal Date: Wed, 15 May 2002 00:33:37 +0100 I have come up with a patch for this, although I haven't tested it yet... Index: getmsg.cgi =================================================================== RCS file: /home/ncvs/www/en/cgi/getmsg.cgi,v retrieving revision 1.34 diff -u -r1.34 getmsg.cgi --- getmsg.cgi 19 Mar 2002 00:53:52 -0000 1.34 +++ getmsg.cgi 8 May 2002 20:39:13 -0000 @@ -210,7 +210,7 @@ my ($text) = @_; my $cvsweb = 'http://cvsweb.FreeBSD.org/'; - $text =~ s/(http|https|ftp|gopher|mailto|news|file)(:[^\s]*?\/?)(\W?\s)/<a href="$1$2">$1$2<\/a>$3/goi; + $text =~ s/(http|https|ftp|gopher|mailto|news|file)(:[^\s>"]*)/<a href="$1$2">$1$2<\/a>/goi; if ($text =~ /Revision\s+Changes\s+Path/) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205142340.g4ENe3K90901>