]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk...
authorlpsolit%gmail.com <>
Sat, 10 Mar 2007 17:41:54 +0000 (17:41 +0000)
committerlpsolit%gmail.com <>
Sat, 10 Mar 2007 17:41:54 +0000 (17:41 +0000)
Bugzilla/Template.pm

index 42c45823e57d23a37a43d57b5d6d8a7fafe4c5a9..42e335f954968134d780cf40a063884655d506fb 100644 (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;