mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-02 19:52:14 +08:00
[PEP 706](https://peps.python.org/pep-0706/), first implemented in Python 3.11.4, mitigates some of the security issues of `TarFile.extract()` and `TarFile.extractall()` by allowing to specify a `filter` keyword-only parameter. Set a safe default (`data_filter`) for the filter if available, reverting to Python 3.11 behavior ('fully_trusted') otherwise, see https://docs.python.org/3/library/tarfile.html#supporting-older-python-versions Also: - Remove unused `tar` parameter from `upload_tar()`