Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk) <ddkilzer@kilzer.net> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@221692 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
cbd8f8657a
commit
faa13870ca
@ -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…
x
Reference in New Issue
Block a user