Revert "Replace xml.dom.minidom.parse which is known to be vulnerable to XML attacks. (#3933)"

This reverts commit 74f227590e.

Expat doesn't like  ./data/achievements.xml ! Error= <type 'exceptions.NameError'>
( ("name 'defusedxml' is not defined",) )
This commit is contained in:
Benau 2019-07-18 15:52:03 +08:00
parent 3e51fadc09
commit d77fd2e69e

View File

@ -86,7 +86,7 @@ for file in filenames:
isAchievements = True
try:
doc = defusedxml.minidom.parse(file)
doc = xml.dom.minidom.parse(file)
except Exception as ex:
print "============================================"
print "/!\\ Expat doesn't like ", file, "! Error=", type(ex), " (", ex.args, ")"