mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00: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:
@@ -131,8 +131,7 @@ class XMLDump:
|
|||||||
if attrValue is None :
|
if attrValue is None :
|
||||||
attr.nodeValue = unicode("","utf-8")
|
attr.nodeValue = unicode("","utf-8")
|
||||||
else :
|
else :
|
||||||
escaped_data = unicode(attrValue)
|
attr.nodeValue = attrValue if isinstance(attrValue, unicode) else unicode(attrValue,"utf-8")
|
||||||
attr.nodeValue = unicode(escaped_data,"utf-8")
|
|
||||||
return attr
|
return attr
|
||||||
|
|
||||||
def __formatString(self, string):
|
def __formatString(self, string):
|
||||||
|
|||||||
Reference in New Issue
Block a user