]> 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:43:14 +0000 (17:43 +0000)
committerlpsolit%gmail.com <>
Sat, 10 Mar 2007 17:43:14 +0000 (17:43 +0000)
Bugzilla/Template.pm

index 800536cd513bcad60112aeaf2fa6882c8a12fade..2764afabe0de0a71a81587c53cb5332573c48898 100644 (file)
@@ -285,8 +285,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;