diff options
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 03d1627..695161a 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -392,7 +392,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): |