diff options
author | FixMyStreet <fixmystreet@vps29.(none)> | 2012-04-14 16:10:54 +1000 |
---|---|---|
committer | FixMyStreet <fixmystreet@vps29.(none)> | 2012-04-14 16:10:54 +1000 |
commit | e825ad07a72383ac1bc55c61314775176c753989 (patch) | |
tree | 191f12803105432bac52808b602d80cfebf25ae9 /perllib/Catalyst/Plugin/Session/State/Cookie.pm | |
parent | f20925047fcd543a6be2622f1566e7746c8596fb (diff) | |
parent | 81a92715f2317b27d36e945b59d2fb3e4d845abc (diff) |
Merge remote branch 'upstream/master'
Diffstat (limited to 'perllib/Catalyst/Plugin/Session/State/Cookie.pm')
-rw-r--r-- | perllib/Catalyst/Plugin/Session/State/Cookie.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/Catalyst/Plugin/Session/State/Cookie.pm b/perllib/Catalyst/Plugin/Session/State/Cookie.pm index ead8be38d..e0a651ed9 100644 --- a/perllib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/perllib/Catalyst/Plugin/Session/State/Cookie.pm @@ -50,8 +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'; + # 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}; |