fixed small bug
Sebastian Riedel [Tue, 22 Mar 2005 22:04:08 +0000 (22:04 +0000)]
Changes
lib/Catalyst.pm
lib/Catalyst/Engine/CGI.pm

diff --git a/Changes b/Changes
index 15ac01f..3452c54 100644 (file)
--- a/Changes
+++ b/Changes
@@ -5,6 +5,7 @@ This file documents the revision history for Perl extension Catalyst.
         - added optional arguments to Catalyst::Log methods (Andrew Ford)
         - removed cgi-server.pl
         - added fcgi.pl
+        - fixed an undef durng make test (Dan Sully)
 
 4.32  Tue Mar 22 02:10:00 2005
         - made a damn typo *AAAAAAAAAAAAAAHHHH!!!*
index eeac89e..f0638c1 100644 (file)
@@ -234,9 +234,9 @@ Sebastian Riedel, C<sri@oook.de>
 =head1 THANK YOU
 
 Andrew Ford, Andrew Ruthven, Christian Hansen, Christopher Hicks,
-Danijel Milicevic, David Naughton, Gary Ashton Jones, Jesse Sheidlower,
-Johan Lindstrom, Marcus Ramberg, Tatsuhiko Miyagawa and all the others
-who've helped.
+Dan Sully, Danijel Milicevic, David Naughton, Gary Ashton Jones,
+Jesse Sheidlower, Johan Lindstrom, Marcus Ramberg, Tatsuhiko Miyagawa
+and all the others who've helped.
 
 =head1 LICENSE
 
index 1a9d04a..1588717 100644 (file)
@@ -187,6 +187,7 @@ sub prepare_request { shift->cgi( CGI::Simple->new ) }
 sub prepare_uploads {
     my $c = shift;
     for my $name ( $c->cgi->upload ) {
+        next unless defined $name;
         $c->req->uploads->{$name} = {
             fh   => $c->cgi->upload($name),
             size => $c->cgi->upload_info( $name, 'size' ),