зеркало из https://github.com/mozilla/gecko-dev.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.
This commit is contained in:
Родитель
d56d55b69b
Коммит
a35064d1ee
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче