From 00d9da5c9cc3ae664dc2b4d882b93abcda043bc0 Mon Sep 17 00:00:00 2001 From: DerThorsten Date: Fri, 30 Oct 2026 09:26:44 +0100 Subject: [PATCH] forward port --- include/pyjs/pre_js/load_pkg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pyjs/pre_js/load_pkg.js b/include/pyjs/pre_js/load_pkg.js index 36027c9..dcbeb61 100644 --- a/include/pyjs/pre_js/load_pkg.js +++ b/include/pyjs/pre_js/load_pkg.js @@ -49,7 +49,7 @@ def _py_untar(tarball_path, target_dir): else: shared_libs.append(f"{target_dir}/{file.name}") - tar.extractall(target_dir) + tar.extractall(target_dir, filter="fully_trusted") actual_shared_libs = [] for file in shared_libs: if not check_wasm_magic_number(Path(file)): @@ -108,7 +108,7 @@ def _py_unbz2(tarball_path, target_dir): prefix = Path(sys.prefix) try: with tarfile.open(tarball_path) as tar: - tar.extractall(target_dir) + tar.extractall(target_dir, filter="fully_trusted") src = target / "site-packages" dest = prefix / "lib/python3.11/site-packages"