Replace xml.dom.minidom.parse which is known to be vulnerable to XML attacks. (#3933)
This code is only run during the development process when updating translations base and the source XML files are trusted data. There doesn't seem to be a downside to the change, however.
This commit is contained in:
parent
fb99661d5d
commit
74f227590e
@ -86,7 +86,7 @@ for file in filenames:
|
||||
isAchievements = True
|
||||
|
||||
try:
|
||||
doc = xml.dom.minidom.parse(file)
|
||||
doc = defusedxml.minidom.parse(file)
|
||||
except Exception as ex:
|
||||
print "============================================"
|
||||
print "/!\\ Expat doesn't like ", file, "! Error=", type(ex), " (", ex.args, ")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user