diff options
author | Marius Halden <marius.h@lden.org> | 2015-10-27 13:27:03 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-10-27 13:27:03 +0100 |
commit | 4fb5331abd2fa4c89ebeb89bc92a245fadd0aa19 (patch) | |
tree | 23632b448612e3845a6e8b1aed6490151395de2a /perllib/Catalyst/Plugin/Session/State/Cookie.pm | |
parent | e609613b5041a15491417eaa9ae129dd1e7531dd (diff) | |
parent | ac39951581a0eefe069c8a707bb89977227d0bce (diff) |
Merge tag 'v1.7' into fiksgatami-dev
Diffstat (limited to 'perllib/Catalyst/Plugin/Session/State/Cookie.pm')
-rw-r--r-- | perllib/Catalyst/Plugin/Session/State/Cookie.pm | 3 |
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 e0a651ed9..bef0c1e66 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 ) = @_; + # Prevent infinite loop in request->path. mySociety addition + return 0 if $c->request->has_uri && !$c->request->_has_path; + # Don't output cookie for JS or JPEG files. mySociety addition return 1 if substr($c->request->path, -3) eq '.js' || substr($c->request->path, -5) eq '.jpeg'; |