Ticket #15852: patch.diff

File patch.diff, 461 bytes (added by Frank Hoffsümmer, 5 years ago)

patched exception handling in parse_cookie method

  • django/http/__init__.py

     
    459459        try:
    460460            c = SimpleCookie()
    461461            c.load(cookie, ignore_parse_errors=True)
    462         except Cookie.CookieError:
     462        except (Cookie.CookieError, AttributeError):
    463463            # Invalid cookie
    464464            return {}
    465465    else:
Back to Top