Commit a9f561f8 authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

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.
parent b1b55ab7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment