mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fixing the issue4860. Escaping the embedded '"' in the js_output method of Morsel class.
This commit is contained in:
parent
b868a66ccb
commit
3e2ea79bda
2 changed files with 5 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue