Subject: | 'httpOnly => 0' is ignored |
The 'httpOnly' flag is always stuck in the '1' value. 'httpOnly => 0' is
ignored.
Attaching patch:
Index: lib/Catalyst/Plugin/Session/State/Cookie.pm
===================================================================
--- lib/Catalyst/Plugin/Session/State/Cookie.pm (revision 11198)
+++ lib/Catalyst/Plugin/Session/State/Cookie.pm (working copy)
@@ -77,8 +77,7 @@
$cookie->{secure} = 1 unless ( ($sec==0) || ($sec==2) );
$cookie->{secure} = 1 if ( ($sec==2) && $c->req->secure );
- my $hto = $cookie->{httponly} || 1; # default = 1 (set httponly)
- $cookie->{httponly} = 1 unless ($hto==0);
+ $cookie->{httponly} = 1 unless $cookie->{httponly} == 0; # default
= 1 (set httponly)
return $cookie;
}