diff options
author | Anish Shah <anish.shah> | 2016-02-07 05:36:00 +0500 |
---|---|---|
committer | Anish Shah <anish.shah> | 2016-02-07 05:36:00 +0500 |
commit | 102d813b5553c8f0b1d0653bb9f9b7a3ac9a56c8 (patch) | |
tree | 30a5050701426b83c91242e917b7b897093b898e /Lib/http | |
parent | e14c07e4e469a91d74546db9980699b4fbed03db (diff) | |
download | cpython-git-102d813b5553c8f0b1d0653bb9f9b7a3ac9a56c8.tar.gz |
Issue #26302: Correctly identify comma as an invalid character for a cookie (correcting regression in Python 3.5).
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index fda02b7016..dbddd6cb8c 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -174,7 +174,7 @@ _Translator.update({ ord('\\'): '\\\\', }) -_is_legal_key = re.compile('[%s]+' % _LegalChars).fullmatch +_is_legal_key = re.compile('[%s]+' % re.escape(_LegalChars)).fullmatch def _quote(str): r"""Quote a string for use in a cookie header. |