summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-12-21 03:35:32 +0100
committerGitHub <noreply@github.com>2017-12-21 03:35:32 +0100
commitab88daa3a716f3c972346252fae26e30b113de3e (patch)
treeb74807d55c0b81222622a89c122bccbcec99065e /Bugzilla
parent7754ea1c7cab26b5b40e7653f1d6cbe7d246c975 (diff)
downloadbugzilla-ab88daa3a716f3c972346252fae26e30b113de3e.tar.gz
bugzilla-ab88daa3a716f3c972346252fae26e30b113de3e.tar.xz
Bug 1426117 - Failure when opening a bug: Invalid parameter passed to Bugzilla::Bug::new_from_list: It must be numeric.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index a027614ec..90d9f59f7 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -191,7 +191,7 @@ sub quoteUrls {
}
# Provide tooltips for full bug links (Bug 74355)
- my $urlbase_re = quotemeta(Bugzilla->localconfig->{urlbase});
+ my $urlbase_re = '(' . quotemeta(Bugzilla->localconfig->{urlbase}) . ')';
$text =~ s~\b(${urlbase_re}\Qshow_bug.cgi?id=\E([0-9]+)(\#c([0-9]+))?)\b
~($things[$count++] = $bug_link_func->($3, $1, { comment_num => $5, user => $user })) &&
("\x{FDD2}" . ($count-1) . "\x{FDD3}")