Explorar o código

Use defusedxml in test files for Bandit compliance

bambuman hai 7 meses
pai
achega
ce4683ad3f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/app/utils/threemf_tools.py

+ 1 - 1
backend/app/utils/threemf_tools.py

@@ -10,7 +10,7 @@ import math
 import re
 import zipfile
 from pathlib import Path
-from xml.etree import ElementTree as ET
+import defusedxml.ElementTree as ET
 
 # Default filament properties
 DEFAULT_FILAMENT_DIAMETER = 1.75  # mm