diff options
author | lpsolit%gmail.com <> | 2007-03-10 17:41:54 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-03-10 17:41:54 +0000 |
commit | dda4118f584372d0de3e1a4e4fc53cb8edb51fcb (patch) | |
tree | 569a6e0ecdebf0bff27b1fbddc8109353d3be574 | |
parent | 000368949b81188897eb7eaeaf21dba27c07cfc8 (diff) | |
download | bugs-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.tar bugs-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.tar.gz bugs-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.tar.bz2 bugs-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.tar.xz bugs-dda4118f584372d0de3e1a4e4fc53cb8edb51fcb.zip |
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.pm | 4 |
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; |