Skip to content

Commit bb68063

Browse files
phv2312Copilot
andauthored
fix: update init value is_safe
Co-authored-by: Copilot <[email protected]>
1 parent dbe7ff1 commit bb68063

File tree

1 file changed

+1
-1
lines changed
  • libs/ktem/ktem/index/file

1 file changed

+1
-1
lines changed

libs/ktem/ktem/index/file/ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ def _may_extract_zip(self, files, zip_dir: str):
10751075

10761076
with zipfile.ZipFile(zip_file, "r") as zip_ref:
10771077
# Check for symlinks and path traversal attacks at zip level
1078-
is_safe = False
1078+
is_safe = True
10791079

10801080
for member in zip_ref.infolist():
10811081
# Disallow symlinks

0 commit comments

Comments
 (0)