Commit dda4118f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer…

Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk) <ddkilzer@kilzer.net> r/a=LpSolit
parent 00036894
...@@ -269,8 +269,8 @@ sub quoteUrls { ...@@ -269,8 +269,8 @@ sub quoteUrls {
my $urlbase_re = '(' . join('|', my $urlbase_re = '(' . join('|',
map { qr/$_/ } grep($_, Bugzilla->params->{'urlbase'}, map { qr/$_/ } grep($_, Bugzilla->params->{'urlbase'},
Bugzilla->params->{'sslbase'})) . ')'; Bugzilla->params->{'sslbase'})) . ')';
$text =~ s~\b(${urlbase_re}\Qshow_bug.cgi?id=\E([0-9]+))\b $text =~ s~\b(${urlbase_re}\Qshow_bug.cgi?id=\E([0-9]+)(\#c([0-9]+))?)\b
~($things[$count++] = get_bug_link($3, $1)) && ~($things[$count++] = get_bug_link($3, $1, $5)) &&
("\0\0" . ($count-1) . "\0\0") ("\0\0" . ($count-1) . "\0\0")
~egox; ~egox;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment