Skip to content

Commit

Permalink
Update src/imagery/i.landsat/i.landsat.import/i.landsat.import.py
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Neteler <[email protected]>
  • Loading branch information
echoix and neteler authored Dec 22, 2023
1 parent 5973a16 commit 4ad1d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imagery/i.landsat/i.landsat.import/i.landsat.import.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
for member in tar.getmembers():
member_path = os.path.join(path, member.name)
if not is_within_directory(path, member_path):
raise Exception("Attempted Path Traversal in Tar File")
raise Exception(_("Attempted path traversal in tar file"))

tar.extractall(path, members, numeric_owner=numeric_owner)

Expand Down

0 comments on commit 4ad1d02

Please sign in to comment.