diff options
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookies.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index fb9589c..93da627 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -173,6 +173,11 @@ _Translator = { '\033' : '\\033', '\034' : '\\034', '\035' : '\\035', '\036' : '\\036', '\037' : '\\037', + # Because of the way browsers really handle cookies (as opposed + # to what the RFC says) we also encode , and ; + + ',' : '\\054', ';' : '\\073', + '"' : '\\"', '\\' : '\\\\', '\177' : '\\177', '\200' : '\\200', '\201' : '\\201', |