From: Ivan Kohler Date: Tue, 30 Jun 2015 03:32:46 +0000 (-0700) Subject: silence unnecessary but too-scary warning about CGI::param in list context X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=18dac45495554fd8a28eab2a50f9af39953d37ca silence unnecessary but too-scary warning about CGI::param in list context --- diff --git a/FS/FS/Mason/Request.pm b/FS/FS/Mason/Request.pm index 62bf670b9..2cf1ed9e0 100644 --- a/FS/FS/Mason/Request.pm +++ b/FS/FS/Mason/Request.pm @@ -111,6 +111,10 @@ sub freeside_setup { FS::Trace->log(' UTF-8-decoding form data'); # foreach my $param ( $cgi->param ) { + + #we can't switch to multi_param until we're done supporting deb 7 + local($CGI::LIST_CONTEXT_WARN) = 0; + my @values = $cgi->param($param); next if $cgi->uploadInfo($values[0]); #warn $param;