From: Ian Campbell Date: Tue, 7 Oct 2014 11:06:46 +0000 (+0100) Subject: CGI: Explicitly request a scalar on RHS of => X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3415583d394e61030b4970ad3991a90c6446d0b6;p=people%2Faperard%2Femesinae.git CGI: Explicitly request a scalar on RHS of => param() can return a list in that context, e.g. if the named param appears twice in the URL, which is not going to work as expected. --- diff --git a/CGI/bugs.pl b/CGI/bugs.pl index 03994e4..4d8b4a2 100755 --- a/CGI/bugs.pl +++ b/CGI/bugs.pl @@ -126,7 +126,7 @@ print p( @bugs = Emesinae::Bug->listall( $dbh, - State => param('state'), + State => scalar param('state'), Severities => [ param('severityfilter') ], Affects => [ param('affectsfilter') ], );