From nobody@FreeBSD.org  Fri Feb 22 14:38:51 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 45A2337B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2002 14:38:50 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1MMco008754;
	Fri, 22 Feb 2002 14:38:50 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202222238.g1MMco008754@freefall.freebsd.org>
Date: Fri, 22 Feb 2002 14:38:50 -0800 (PST)
From: Tony Finch <dot@dotat.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mailing list archive URL regexp suboptimal
X-Send-Pr-Version: www-1.0

>Number:         35222
>Category:       docs
>Synopsis:       [patch] getmsg.cgi: mailing list archive URL regexp suboptimal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 22 14:40:00 PST 2002
>Closed-Date:    Mon Jul 16 18:12:45 GMT 2007
>Last-Modified:  Mon Jul 16 18:12:45 GMT 2007
>Originator:     Tony Finch
>Release:        web pages
>Organization:
dotat labs
>Environment:
>Description:
If you look at the following message you will see that the > bracket
after the URL has been included in the href link, so clicking on it
doesn't work.

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=488915+0+current/freebsd-arch
>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

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/) {
  
 
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Mon Jul 16 18:12:14 UTC 2007 
State-Changed-Why:  
fixed, thanks for your report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35222 
>Unformatted:
