Permalink
Browse files

Fixed issue in mod_perl & fastCGI environment of cookies returned fro…

…m CGI->cookie() leaking from one session to another.
  • Loading branch information...
1 parent 985979b commit 83a608e8c9151981ebceab6427107b29f6d25df0 lstein committed Jul 30, 2009
Showing with 7 additions and 6 deletions.
  1. +4 −5 CGI.pm
  2. +3 −1 Changes
View
9 CGI.pm
@@ -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.265 2009-05-25 15:49:26 lstein Exp $';
-$CGI::VERSION='3.43';
+$CGI::revision = '$Id: CGI.pm,v 1.266 2009-07-30 16:32:34 lstein Exp $';
+$CGI::VERSION='3.44';
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
@@ -2836,9 +2836,8 @@ sub cookie {
# value of the cookie, if any. For efficiency, we cache the parsed
# cookies in our state variables.
unless ( defined($value) ) {
- $self->{'.cookies'} = CGI::Cookie->fetch
- unless $self->{'.cookies'};
-
+ $self->{'.cookies'} = CGI::Cookie->fetch;
+
# If no name is supplied, then retrieve the names of all our cookies.
return () unless $self->{'.cookies'};
return keys %{$self->{'.cookies'}} unless $name;
View
@@ -1,6 +1,8 @@
Version 3.44
- 1.Patch from Kurt Jaeger to allow HTTP PUT even if the content length is unknown.
+ 1. Patch from Kurt Jaeger to allow HTTP PUT even if the content length is unknown.
2. Patch from Pavel merdin to fix a problem for one of the FireFox addons.
+ 3. Fixed issue in mod_perl & fastCGI environment of cookies returned from
+ CGI->cookie() leaking from one session to another.
Version 3.43
1. Documentation patch from MARKSTOS@cpan.org to replace all occurrences of

0 comments on commit 83a608e

Please sign in to comment.