We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c29fe commit fc60755Copy full SHA for fc60755
unblob/handlers/archive/_safe_tarfile.py
@@ -82,7 +82,7 @@ def extract(self, tarinfo: tarfile.TarInfo, extract_root: Path): # noqa: C901
82
"Absolute path as link target.",
83
"Converted to extraction relative path.",
84
)
85
- tarinfo.linkname = f"./{tarinfo.linkname}"
+ tarinfo.linkname = f"{extract_root}/{tarinfo.linkname}"
86
87
if not is_safe_path(
88
basedir=extract_root,
0 commit comments