diff options
author | Marius Halden <marius.h@lden.org> | 2016-05-28 13:49:00 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-05-28 13:49:00 +0200 |
commit | 6791ce86ae15adbded24bd814a78cc0e87f404fa (patch) | |
tree | 99af5da31e4db091350a09bcdee913c99abc2fc3 /perllib/Catalyst/Plugin/Session/State/Cookie.pm | |
parent | 6c1118dbf2c4b15bcfcd77600d36f2389428c75e (diff) | |
parent | 89b0efeb94631c4c31ce33e7f98297e754dd226d (diff) |
Merge tag 'v1.8.2' into fiksgatami-dev
Diffstat (limited to 'perllib/Catalyst/Plugin/Session/State/Cookie.pm')
-rw-r--r-- | perllib/Catalyst/Plugin/Session/State/Cookie.pm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/perllib/Catalyst/Plugin/Session/State/Cookie.pm b/perllib/Catalyst/Plugin/Session/State/Cookie.pm index bef0c1e66..c4b61123b 100644 --- a/perllib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/perllib/Catalyst/Plugin/Session/State/Cookie.pm @@ -50,13 +50,6 @@ 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'; - if ( $cookie->{path} ) { return 1 if index '/'.$c->request->path, $cookie->{path}; } |