summaryrefslogtreecommitdiff
path: root/lib/CGI
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CGI')
-rw-r--r--lib/CGI/Cookie.pm6
-rw-r--r--lib/CGI/Fast.pm1
-rw-r--r--lib/CGI/t/upload.t3
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/CGI/Cookie.pm b/lib/CGI/Cookie.pm
index 897e33122e..c9f318ee22 100644
--- a/lib/CGI/Cookie.pm
+++ b/lib/CGI/Cookie.pm
@@ -13,7 +13,7 @@ package CGI::Cookie;
# wish, but if you redistribute a modified version, please attach a note
# listing the modifications you have made.
-$CGI::Cookie::VERSION='1.28';
+$CGI::Cookie::VERSION='1.29';
use CGI::Util qw(rearrange unescape escape);
use CGI;
@@ -51,7 +51,7 @@ sub fetch {
my %results;
my($key,$value);
- my(@pairs) = split("[;,] ?",$raw_cookie);
+ my @pairs = split("[;,] ?",$raw_cookie);
foreach (@pairs) {
s/\s*(.*?)\s*/$1/;
if (/^([^=]+)=(.*)/) {
@@ -88,7 +88,7 @@ sub parse {
my ($self,$raw_cookie) = @_;
my %results;
- my(@pairs) = split("; ?",$raw_cookie);
+ my @pairs = split("[;,] ?",$raw_cookie);
foreach (@pairs) {
s/\s*(.*?)\s*/$1/;
my($key,$value) = split("=",$_,2);
diff --git a/lib/CGI/Fast.pm b/lib/CGI/Fast.pm
index 85fc158154..d29feb41b5 100644
--- a/lib/CGI/Fast.pm
+++ b/lib/CGI/Fast.pm
@@ -55,6 +55,7 @@ sub new {
}
}
CGI->_reset_globals;
+ $self->_setup_symbols(@SAVED_SYMBOLS) if @CGI::SAVED_SYMBOLS;
return $CGI::Q = $self->SUPER::new($initializer, @param);
}
diff --git a/lib/CGI/t/upload.t b/lib/CGI/t/upload.t
index 9f92ca45ae..fabff44804 100644
--- a/lib/CGI/t/upload.t
+++ b/lib/CGI/t/upload.t
@@ -81,7 +81,8 @@ is( $q->param('300x300_gif') , '300x300.gif' , 'filename_4' );
{
my $test = "multiple file names are handled right with same-named upload fields";
my @hello_names = $q->param('hello_world');
- is_deeply(\@hello_names, [ 'goodbye_world.txt','hello_world.txt' ], $test);
+ is ($hello_names[0],'goodbye_world.txt',$test. "...first file");
+ is ($hello_names[1],'hello_world.txt',$test. "...second file");
}
#-----------------------------------------------------------------------------