From: lpsolit%gmail.com <> Date: Sat, 10 Mar 2007 17:41:54 +0000 (+0000) Subject: Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk... X-Git-Tag: bugzilla-3.1.2~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dda4118f584372d0de3e1a4e4fc53cb8edb51fcb;p=thirdparty%2Fbugzilla.git Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk) r/a=LpSolit --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 42c45823e5..42e335f954 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -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;