summaryrefslogtreecommitdiff
path: root/Lib/Cookie.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/Cookie.py')
-rw-r--r--Lib/Cookie.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/Cookie.py b/Lib/Cookie.py
index b2f7427aa9..1ccfd160a4 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):