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. git-svn-id: svn://10.0.0.236/trunk@87473 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
26d903d031
commit
89d9949ee8
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user