mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk) <ddkilzer@kilzer.net> r/a=LpSolit
This commit is contained in:
parent
3671397b3a
commit
605531ef67
@ -269,8 +269,8 @@ sub quoteUrls {
|
||||
my $urlbase_re = '(' . join('|',
|
||||
map { qr/$_/ } grep($_, Bugzilla->params->{'urlbase'},
|
||||
Bugzilla->params->{'sslbase'})) . ')';
|
||||
$text =~ s~\b(${urlbase_re}\Qshow_bug.cgi?id=\E([0-9]+))\b
|
||||
~($things[$count++] = get_bug_link($3, $1)) &&
|
||||
$text =~ s~\b(${urlbase_re}\Qshow_bug.cgi?id=\E([0-9]+)(\#c([0-9]+))?)\b
|
||||
~($things[$count++] = get_bug_link($3, $1, $5)) &&
|
||||
("\0\0" . ($count-1) . "\0\0")
|
||||
~egox;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user