mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Fix for Issue #47
This commit is contained in:
@@ -12,7 +12,6 @@ from xml.parsers.expat import ExpatError
|
||||
|
||||
from extra.prettyprint import prettyprint
|
||||
from lib.core.common import getUnicode
|
||||
from lib.core.common import restoreDumpMarkedChars
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
@@ -125,7 +124,7 @@ class XMLDump:
|
||||
if data is None :
|
||||
return self.__doc.createTextNode(u'')
|
||||
else :
|
||||
escaped_data = saxutils.escape(self.__formatString(data), ENTITIES)
|
||||
escaped_data = saxutils.escape(data, ENTITIES)
|
||||
return self.__doc.createTextNode(escaped_data)
|
||||
|
||||
def __createAttribute(self,attrName,attrValue):
|
||||
@@ -140,9 +139,6 @@ class XMLDump:
|
||||
attr.nodeValue = getUnicode(attrValue)
|
||||
return attr
|
||||
|
||||
def __formatString(self, inpStr):
|
||||
return restoreDumpMarkedChars(getUnicode(inpStr))
|
||||
|
||||
def string(self, header, data, sort=True):
|
||||
'''
|
||||
Adds string element to the xml.
|
||||
|
||||
Reference in New Issue
Block a user