| Summary: | [patch] getmsg.cgi: mailing list archive URL regexp suboptimal | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Tony Finch <dot> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Tony Finch
2002-02-22 22:40:00 UTC
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/) {
State Changed From-To: open->closed fixed, thanks for your report! |