Small patch from olau@iola.dk to avoid constant 500 traceback when someone tries to push an invalid cookie.
- Legacy-Id: 4553
This commit is contained in:
parent
c587b0ed44
commit
3597d436ac
|
@ -292,7 +292,7 @@ class CompatCookie(SimpleCookie):
|
|||
def _loose_set(self, key, real_value, coded_value):
|
||||
try:
|
||||
self._strict_set(key, real_value, coded_value)
|
||||
except CookieError:
|
||||
except:
|
||||
self.bad_cookies.append(key)
|
||||
dict.__setitem__(self, key, None)
|
||||
|
||||
|
|
Loading…
Reference in a new issue