Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Session-State-Cookie CPAN distribution.

Report information
The Basics
Id: 48930
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Session-State-Cookie

People
Owner: rafl [...] debian.org
Requestors: nickolay8 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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; }