We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4431852 commit e432609Copy full SHA for e432609
monai/apps/utils.py
@@ -149,7 +149,7 @@ def safe_extract_member(member, extract_to):
149
target_real = os.path.realpath(full_path)
150
# Ensure the resolved path stays within the extraction root
151
if os.path.commonpath([extract_root, target_real]) != extract_root:
152
- raise ValueError(f"Unsafe path: path traversal {member_path}") # noqa: TRY003
+ raise ValueError(f"Unsafe path: path traversal {member_path}")
153
154
return full_path
155
0 commit comments