mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
minor unimportant update
This commit is contained in:
parent
32a0ba9296
commit
17e0e83990
|
@ -116,7 +116,7 @@ class XMLDump:
|
||||||
The text is escaped to an fit the xml text format.
|
The text is escaped to an fit the xml text format.
|
||||||
'''
|
'''
|
||||||
if data is None :
|
if data is None :
|
||||||
return self.__doc.createTextNode('')
|
return self.__doc.createTextNode(u'')
|
||||||
else :
|
else :
|
||||||
escaped_data = saxutils.escape(self.__formatString(data), ENTITIES)
|
escaped_data = saxutils.escape(self.__formatString(data), ENTITIES)
|
||||||
return self.__doc.createTextNode(escaped_data)
|
return self.__doc.createTextNode(escaped_data)
|
||||||
|
@ -128,7 +128,7 @@ class XMLDump:
|
||||||
'''
|
'''
|
||||||
attr = self.__doc.createAttribute(attrName)
|
attr = self.__doc.createAttribute(attrName)
|
||||||
if attrValue is None :
|
if attrValue is None :
|
||||||
attr.nodeValue = ''
|
attr.nodeValue = u''
|
||||||
else :
|
else :
|
||||||
attr.nodeValue = self.__getUnicode(attrValue)
|
attr.nodeValue = self.__getUnicode(attrValue)
|
||||||
return attr
|
return attr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user