Skip to content

Commit

Permalink
Needed brackets, dur (bugfix to de7a31d).
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Mar 23, 2012
1 parent 8ab82d4 commit cadd35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perllib/Catalyst/Plugin/Session/State/Cookie.pm
Expand Up @@ -51,7 +51,7 @@ sub cookie_is_rejecting {
my ( $c, $cookie ) = @_;

# Don't output cookie for JS files. mySociety addition
return 1 if substr $c->request->path, -3 eq '.js';
return 1 if substr($c->request->path, -3) eq '.js';

if ( $cookie->{path} ) {
return 1 if index '/'.$c->request->path, $cookie->{path};
Expand Down

0 comments on commit cadd35d

Please sign in to comment.