mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
bug fix (unicode(unicode) results in “TypeError: decoding Unicode is not supported” (http://www.red-mercury.com/blog/eclectic-tech/python-mystery-of-the-day/)
This commit is contained in:
parent
d3e527aba3
commit
a4155269c5
|
@ -131,8 +131,7 @@ class XMLDump:
|
|||
if attrValue is None :
|
||||
attr.nodeValue = unicode("","utf-8")
|
||||
else :
|
||||
escaped_data = unicode(attrValue)
|
||||
attr.nodeValue = unicode(escaped_data,"utf-8")
|
||||
attr.nodeValue = attrValue if isinstance(attrValue, unicode) else unicode(attrValue,"utf-8")
|
||||
return attr
|
||||
|
||||
def __formatString(self, string):
|
||||
|
|
Loading…
Reference in New Issue
Block a user