diff options
author | cyeh%bluemartini.com <> | 2001-02-21 05:49:59 +0000 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2001-02-21 05:49:59 +0000 |
commit | a9f561f8b908f16af16939a0eab49d0001313c38 (patch) | |
tree | 824556e95d5aea1e825985fd632fccef3c37195c | |
parent | b1b55ab744877944cf327853e9474e742057b8d0 (diff) | |
download | bugs-a9f561f8b908f16af16939a0eab49d0001313c38.tar bugs-a9f561f8b908f16af16939a0eab49d0001313c38.tar.gz bugs-a9f561f8b908f16af16939a0eab49d0001313c38.tar.bz2 bugs-a9f561f8b908f16af16939a0eab49d0001313c38.tar.xz bugs-a9f561f8b908f16af16939a0eab49d0001313c38.zip |
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.
-rw-r--r-- | globals.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl index f9e853ab2..13f1994be 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{<A HREF="showattachment.cgi?attach_id=$num">$item</A>}; + $things[$count++] = $item; + } while ($text =~ s/\*\*\* This bug has been marked as a duplicate of (\d+) \*\*\*/"##$count##"/ei) { my $item = $&; my $num = $1; |