diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2009-04-02 03:00:34 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2009-04-02 03:00:34 (GMT) |
commit | c730a6a1237a31d0ce89ab8fee2dea9af450a6ee (patch) | |
tree | 2a2250447d2fb7558655801ce438f0acac106f08 /Lib/Cookie.py | |
parent | 985951df7f05b8206c5c928a7783326ea942a874 (diff) | |
download | cpython-c730a6a1237a31d0ce89ab8fee2dea9af450a6ee.zip cpython-c730a6a1237a31d0ce89ab8fee2dea9af450a6ee.tar.gz cpython-c730a6a1237a31d0ce89ab8fee2dea9af450a6ee.tar.bz2 |
Fixing the issue4860. Escaping embedded '"' character in js_output() method of Morsel.
Diffstat (limited to 'Lib/Cookie.py')
-rw-r--r-- | Lib/Cookie.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/Cookie.py b/Lib/Cookie.py index b2f7427..1ccfd16 100644 --- a/Lib/Cookie.py +++ b/Lib/Cookie.py @@ -477,7 +477,7 @@ class Morsel(dict): document.cookie = \"%s\"; // end hiding --> </script> - """ % ( self.OutputString(attrs), ) + """ % ( self.OutputString(attrs).replace('"',r'\"'), ) # end js_output() def OutputString(self, attrs=None): |