silence unnecessary but too-scary warning about CGI::param in list context
authorIvan Kohler <ivan@freeside.biz>
Tue, 30 Jun 2015 03:32:59 +0000 (20:32 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 1 Jul 2015 06:22:56 +0000 (23:22 -0700)
FS/FS/Mason/Request.pm

index 66c69f6..022ff8e 100644 (file)
@@ -110,6 +110,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;