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.
This commit is contained in:
cyeh%bluemartini.com 2001-02-20 21:49:59 +00:00
Родитель d56d55b69b
Коммит a35064d1ee
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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;