Skip to content

Commit

Permalink
securing xml2csv eclipse-sumo#11054
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Sep 28, 2022
1 parent 2cda6fb commit 00db199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/xml/xml2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def main(args=None):
handler = CSVWriter(attrFinder, options)
if options.validation:
schema = lxml.etree.XMLSchema(file=options.xsd)
parser = lxml.etree.XMLParser(schema=schema)
parser = lxml.etree.XMLParser(schema=schema, resolve_entities=False, no_network=True)
tree = lxml.etree.parse(options.source, parser)
lxml.sax.saxify(tree, handler)
else:
Expand Down

0 comments on commit 00db199

Please sign in to comment.