Skip to content

Commit

Permalink
replace xml.etree by the safer defusedxml
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Dec 7, 2024
1 parent 53d613e commit e2d4ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/v.in.wfs/v.in.wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def main():
grass.run_command("v.in.ogr", flags="o", input=tmpxml, output=out)
grass.message(_("Vector map <%s> imported from WFS.") % out)
except Exception:
import xml.etree.ElementTree as ET
import defusedxml.ElementTree as ET

grass.message(_("WFS import failed"))

Expand Down

0 comments on commit e2d4ef1

Please sign in to comment.