mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
Fixing the issue4860. Escaping embedded '"' character in js_output() method of Morsel.
This commit is contained in:
parent
985951df7f
commit
c730a6a123
2 changed files with 5 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue