From: cyeh%bluemartini.com <> Date: Wed, 21 Feb 2001 05:49:59 +0000 (+0000) Subject: fix for 9302: Would be nice if attachment + number was a link too. X-Git-Tag: bugzilla-2.12~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f561f8b908f16af16939a0eab49d0001313c38;p=thirdparty%2Fbugzilla.git fix for 9302: Would be nice if attachment + number was a link too. patch submitted by afranke@ags.uni-sb.de (Andreas Franke) thanks for the patch. Now can reference attachments in other bugs as an HTML link. --- diff --git a/globals.pl b/globals.pl index f9e853ab2c..13f1994be6 100644 --- a/globals.pl +++ b/globals.pl @@ -714,6 +714,14 @@ sub quoteUrls { $item = GetBugLink($num, $item); $things[$count++] = $item; } + while ($text =~ s/\battachment(\s|%\#)*(\d+)/"##$count##"/ei) { + my $item = $&; + my $num = $2; + $item = value_quote($item); # Not really necessary, since we know + # there's no special chars in it. + $item = qq{$item}; + $things[$count++] = $item; + } while ($text =~ s/\*\*\* This bug has been marked as a duplicate of (\d+) \*\*\*/"##$count##"/ei) { my $item = $&; my $num = $1;