mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
minor fix (reading of unicode xml files)
This commit is contained in:
@@ -1589,9 +1589,7 @@ def readXmlFile(xmlFile):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
checkFile(xmlFile)
|
checkFile(xmlFile)
|
||||||
|
retVal = minidom.parse(xmlFile).documentElement
|
||||||
with codecs.open(xmlFile, 'r', UNICODE_ENCODING) as f:
|
|
||||||
retVal = minidom.parse(f).documentElement
|
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user