summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-03-10 18:41:54 +0100
committerlpsolit%gmail.com <>2007-03-10 18:41:54 +0100
commitdda4118f584372d0de3e1a4e4fc53cb8edb51fcb (patch)
tree569a6e0ecdebf0bff27b1fbddc8109353d3be574
parent000368949b81188897eb7eaeaf21dba27c07cfc8 (diff)
downloadbugzilla-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.tar.gz
bugzilla-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.tar.xz
Bug 365150: #cNN comment not part of linkified URL - Patch by David D. Kilzer (ddk) <ddkilzer@kilzer.net> r/a=LpSolit
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 42c45823e..42e335f95 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;