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:
lpsolit%gmail.com 2007-03-10 11:41:54 +00:00
parent 3671397b3a
commit 605531ef67

View File

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