Skip to content

Commit 9aa6a72

Browse files
authored
Merge pull request #644 from ejortega/zip-duplicate-path
fix: duplicate path in zip extraction
2 parents 5ca1d2e + 61ddd72 commit 9aa6a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guarddog/utils/archives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ def recurse_add_perms(path):
7474
# Note: zip.extract cleans up any malicious file name
7575
# such as directory traversal attempts This is not the
7676
# case of zipfile.extractall
77-
zip.extract(file, path=os.path.join(target_directory, file))
77+
zip.extract(file, path=target_directory)
7878
else:
7979
raise ValueError(f"unsupported archive extension: {source_archive}")

0 commit comments

Comments
 (0)