Ticket #19826: 19826.patch

File 19826.patch, 425 bytes (added by jfenton, 2 years ago)
  • django/http/__init__.py

    diff --git a/django/http/__init__.py b/django/http/__init__.py
    index da993eb..efff609 100644
    a b def parse_cookie(cookie): 
    550550        try:
    551551            c = SimpleCookie()
    552552            c.load(cookie)
    553         except Cookie.CookieError:
     553        except AttributeError, Cookie.CookieError:
    554554            # Invalid cookie
    555555            return {}
    556556    else:
Back to Top