Permalink
Browse files

Typo in upload() persisted, now fixed for real. Thanks to Emanuele Ze…

…ppieri for correct patch and regression test.
  • Loading branch information...
1 parent 0fee195 commit 8889827fe10fa38cde444e3196c84dce97e0ace4 lstein committed Aug 24, 2006
Showing with 9 additions and 3 deletions.
  1. +3 −3 CGI.pm
  2. +4 −0 Changes
  3. +2 −0 MANIFEST
  4. BIN t/upload_post_text.txt
View
@@ -18,8 +18,8 @@ use Carp 'croak';
# The most recent version and complete docs are available at:
# http://stein.cshl.org/WWW/software/CGI/
-$CGI::revision = '$Id: CGI.pm,v 1.214 2006-08-23 15:22:30 lstein Exp $';
-$CGI::VERSION='3.22';
+$CGI::revision = '$Id: CGI.pm,v 1.215 2006-08-24 11:50:38 lstein Exp $';
+$CGI::VERSION='3.23';
# 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];
}
View
@@ -1,3 +1,7 @@
+ Version 3.23
+ 1. Typo in upload() persisted, now fixed for real. Thanks to
+ Emanuele Zeppieri for correct patch and regression test.
+
Version 3.22
1. Typo in upload() function broke uploads. Now fixed (CPAN bug 21126).
View
@@ -52,6 +52,8 @@ t/pretty.t
t/push.t
t/request.t
t/switch.t
+t/upload.t
+t/upload_post_text.txt
t/util.t
t/util-58.t
META.yml Module meta-data (added by MakeMaker)
View
Binary file not shown.

0 comments on commit 8889827

Please sign in to comment.