summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-04-14 21:03:00 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2016-04-14 21:03:00 +0200
commit90d86a9744883ccc120a0a955ffade72990e1505 (patch)
tree07fd038fc41a2de0259f2f7c6a9de0d55e8a1e34 /Bugzilla/Template.pm
parentae22da8710d00232d28b7c6b9093d2b7e33b0627 (diff)
downloadbugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.gz
bugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.xz
Bug 1088022 - Bump min version to CGI 4.09
r=dkl
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 48899cd78..95a89b560 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -1013,6 +1013,10 @@ sub create {
# If an sudo session is in progress, this is the user we're faking
'user' => sub { return Bugzilla->user; },
+ # TT directives are evaluated in list context, conflicting
+ # with CGI checks about using $cgi->param() in list context.
+ 'cgi_param' => sub { return scalar Bugzilla->cgi->param($_[0]) },
+
# Currenly active language
'current_language' => sub { return Bugzilla->current_language; },