From: Steve Peters Date: Thu, 24 Aug 2006 01:27:08 +0000 (+0000) Subject: Upgrade to CGI.pm-3.22. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9f9736a1d14b921862a1b77740b0ec694b25aac9;p=p5sagit%2Fp5-mst-13.2.git Upgrade to CGI.pm-3.22. p4raw-id: //depot/perl@28752 --- diff --git a/lib/CGI.pm b/lib/CGI.pm index 8a64d0e..ffb8ce9 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -19,7 +19,7 @@ use Carp 'croak'; # http://stein.cshl.org/WWW/software/CGI/ $CGI::revision = '$Id: CGI.pm,v 1.208 2006/04/23 14:25:14 lstein Exp $'; -$CGI::VERSION='3.21'; +$CGI::VERSION='3.22'; # HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES. # UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING. @@ -3419,7 +3419,7 @@ END_OF_FUNC 'upload' =><<'END_OF_FUNC', sub upload { my($self,$param_name) = self_or_default(@_); - my @param = grep(ref && defined(fileno($_)), $self->param($param_name)); + my @param = grep {ref && defined(fileno($_))}, $self->param($param_name)); return unless @param; return wantarray ? @param : $param[0]; } diff --git a/lib/CGI/Changes b/lib/CGI/Changes index 4b934ee..3d5b712 100644 --- a/lib/CGI/Changes +++ b/lib/CGI/Changes @@ -1,3 +1,6 @@ + Version 3.22 + 1. Typo in upload() function broke uploads. Now fixed (CPAN bug 21126). + Version 3.21 1. Don't try to read data at all when POST > $POST_MAX. 2. Fixed bug that caused $cgi->param('name',undef,'value') to unset param('name') entirely.