Explorar el Código

Use defusedxml in test files for Bandit compliance

bambuman hace 7 meses
padre
commit
ce4683ad3f
Se han modificado 1 ficheros con 1 adiciones y 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