Browse files

[1.5.x] Don't use : as an invalid cookie character

Since has been resolved in favour of
the colon in cookie names, we need to test invalid cookie removal using
a different character. "@" is still considered invalid by all sources.

Backport of 419e2137fabdcadadc728cb9bd94af929157dc3b from master
  • Loading branch information...
1 parent 7b69785 commit edaacc41124c562961df478be1382773216cac55 @clelland clelland committed with spookylukey Sep 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/requests/
@@ -57,7 +57,7 @@ def test_wsgirequest_repr(self):
str_prefix("<WSGIRequest\npath:/otherpath/,\nGET:{%(_)s'a': %(_)s'b'},\nPOST:{%(_)s'c': %(_)s'd'},\nCOOKIES:{%(_)s'e': %(_)s'f'},\nMETA:{%(_)s'g': %(_)s'h'}>"))
def test_parse_cookie(self):
- self.assertEqual(parse_cookie('invalid:key=true'), {})
+ self.assertEqual(parse_cookie('invalid@key=true'), {})
def test_httprequest_location(self):
request = HttpRequest()

0 comments on commit edaacc4

Please sign in to comment.