Skip to content

Commit

Permalink
Explicitly use a filter when extracting Gramps tar files, and be less…
Browse files Browse the repository at this point in the history
… trusting of such archives (#1525)
  • Loading branch information
bartfeenstra committed May 26, 2024
1 parent 6f2b7fd commit 32fc76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betty/gramps/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def load_gpkg(self, gpkg_path: Path) -> None:
async with TemporaryDirectory() as cache_directory_path_str:
tarfile.open(
fileobj=tar_file,
).extractall(cache_directory_path_str)
).extractall(cache_directory_path_str, filter="data")
await self.load_gramps(
Path(cache_directory_path_str) / "data.gramps"
)
Expand Down

0 comments on commit 32fc76e

Please sign in to comment.