diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-23 16:35:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-23 16:35:06 +0000 |
commit | cadd35d4853974178a8a04ef7e93ec58f69607ee (patch) | |
tree | 19b27f8ce88dd00542d0a05ebe56b08d43bd2559 /perllib/Catalyst | |
parent | 8ab82d4c381645f3657432210e8de9348b68aaa2 (diff) |
Needed brackets, dur (bugfix to de7a31da).
Diffstat (limited to 'perllib/Catalyst')
-rw-r--r-- | perllib/Catalyst/Plugin/Session/State/Cookie.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Catalyst/Plugin/Session/State/Cookie.pm b/perllib/Catalyst/Plugin/Session/State/Cookie.pm index 7c9f32878..ead8be38d 100644 --- a/perllib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/perllib/Catalyst/Plugin/Session/State/Cookie.pm @@ -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}; |