From: lpsolit%gmail.com <> Date: Sat, 10 Mar 2007 17:43:14 +0000 (+0000) Subject: Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk... X-Git-Tag: bugzilla-3.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c25f6fadb185807470a0b58c8f2134e963690f;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 800536cd51..2764afabe0 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -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;