Browse Source

Use defusedxml in test files for Bandit compliance

bambuman 7 tháng trước cách đây
mục cha
commit
ce4683ad3f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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