From 2205bf4426cbef255835ce9e8d3fae082d707d26 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Jan 2023 14:42:14 +0530 Subject: [PATCH] add a comment --- kitty/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/utils.py b/kitty/utils.py index bdf14c0df..fdf4fcd90 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -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)