We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f28e4 commit 85ba68bCopy full SHA for 85ba68b
shell-integration/ssh/bootstrap.py
@@ -212,7 +212,10 @@ def get_data():
212
data = base64.standard_b64decode(data)
213
with temporary_directory(dir=HOME, prefix='.kitty-ssh-kitten-untar-') as tdir, tarfile.open(fileobj=io.BytesIO(data)) as tf:
214
try:
215
- tf.extractall(tdir, filter='data')
+ # We have to use fully_trusted as otherwise it refuses to extract,
216
+ # for example, symlinks that point to absolute paths outside
217
+ # tdir.
218
+ tf.extractall(tdir, filter='fully_trusted')
219
except TypeError:
220
tf.extractall(tdir)
221
with open(tdir + '/data.sh') as f:
0 commit comments