add a comment

This commit is contained in:
Kovid Goyal 2023-01-06 14:42:14 +05:30
parent def35078d1
commit 2205bf4426
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1107,6 +1107,7 @@ def sanitize_url_for_dispay_to_user(url: str) -> str:
def extract_all_from_tarfile_safely(tf: 'tarfile.TarFile', dest: str) -> None:
# Ensure that all extracted items are within dest
def is_within_directory(directory: str, target: str) -> bool:
abs_directory = os.path.abspath(directory)