Skip to content

Commit d77fd2e

Browse files
committed
Revert "Replace xml.dom.minidom.parse which is known to be vulnerable to XML attacks. (supertuxkart#3933)"
This reverts commit 74f2275. Expat doesn't like ./data/achievements.xml ! Error= <type 'exceptions.NameError'> ( ("name 'defusedxml' is not defined",) )
1 parent 3e51fad commit d77fd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/po/extract_strings_from_XML.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def traverse(file, node, isChallenge, isGP, isKart, isTrack, isAchievements, lev
8686
isAchievements = True
8787

8888
try:
89-
doc = defusedxml.minidom.parse(file)
89+
doc = xml.dom.minidom.parse(file)
9090
except Exception as ex:
9191
print "============================================"
9292
print "/!\\ Expat doesn't like ", file, "! Error=", type(ex), " (", ex.args, ")"

0 commit comments

Comments
 (0)