aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Catalyst/Plugin
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-27 10:32:11 +0100
committerStruan Donald <struan@exo.org.uk>2012-03-27 10:32:11 +0100
commita2fd089c48ce36b3e015845256fa688a27ff1572 (patch)
tree7a515a48153c855340ba772f046a89e3e3516cf4 /perllib/Catalyst/Plugin
parentf682af8e012def2ee12c2e2607cad7b4fc9f2161 (diff)
parenteba1039023271bac6178776f9e7d48b79a1c43e3 (diff)
Merge remote-tracking branch 'origin/master' into bromley
Diffstat (limited to 'perllib/Catalyst/Plugin')
-rw-r--r--perllib/Catalyst/Plugin/Session/State/Cookie.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/Catalyst/Plugin/Session/State/Cookie.pm b/perllib/Catalyst/Plugin/Session/State/Cookie.pm
index c4b61123b..ead8be38d 100644
--- a/perllib/Catalyst/Plugin/Session/State/Cookie.pm
+++ b/perllib/Catalyst/Plugin/Session/State/Cookie.pm
@@ -50,6 +50,9 @@ sub update_session_cookie {
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';
+
if ( $cookie->{path} ) {
return 1 if index '/'.$c->request->path, $cookie->{path};
}