summaryrefslogtreecommitdiff
path: root/Lib/http
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-04-02 03:02:03 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2009-04-02 03:02:03 +0000
commit35b264dc1c3af077e3dfa4e61f001c86ef3ca3e2 (patch)
treef2b2e08c8d9c7a1e4884aaaf6e767c8d47c12a9e /Lib/http
parent9d949ec60a85cf844aabb32204a5d42efb7750e6 (diff)
downloadcpython-35b264dc1c3af077e3dfa4e61f001c86ef3ca3e2.tar.gz
Fixing the issue4860. Escaping the embedded '"' in the js_output method of Morsel class.
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/cookies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py
index 03d1627de9..695161a380 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):