Fixing the issue4860. Escaping embedded '"' character in js_output() method of Morsel.

This commit is contained in:
Senthil Kumaran 2009-04-02 03:00:34 +00:00
parent 985951df7f
commit c730a6a123
2 changed files with 5 additions and 5 deletions

View file

@ -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):