[bugzilla-gnome-org-upstream/4.4: 7/19] Bug 1087400: CGI 4.05 throws tons of "CGI::param called in list context" warnings r/a=glob



commit 9155570acb38510b26bc04b8f892688d0c1c8490
Author: Frédéric Buclin <LpSolit gmail com>
Date:   Mon Oct 27 11:47:25 2014 +0100

    Bug 1087400: CGI 4.05 throws tons of "CGI::param called in list context" warnings
    r/a=glob

 Bugzilla/CGI.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 7bb9d96..7df916b 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -344,6 +344,7 @@ sub header {
 
 sub param {
     my $self = shift;
+    local $CGI::LIST_CONTEXT_WARN = 0;
 
     # When we are just requesting the value of a parameter...
     if (scalar(@_) == 1) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]