aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-23 16:35:06 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-23 16:35:06 +0000
commitcadd35d4853974178a8a04ef7e93ec58f69607ee (patch)
tree19b27f8ce88dd00542d0a05ebe56b08d43bd2559
parent8ab82d4c381645f3657432210e8de9348b68aaa2 (diff)
Needed brackets, dur (bugfix to de7a31da).
-rw-r--r--perllib/Catalyst/Plugin/Session/State/Cookie.pm2
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};