Extracting archives from the context menu (three dots) causes Material Files to create a separate directory in the target location (presumably for tarbomb protection), even if there's only file (plain or directory) in the archive. This behavior can be confusing to users (have had a confused user report this to me).
Extracting archives from the context menu (three dots) causes Material Files to create a separate directory in the target location (presumably for tarbomb protection), even if there's only file (plain or directory) in the archive. This behavior can be confusing to users (have had a confused user report this to me).
Reproducing
Download the examples onto your device.
single_file.zip
: Contains a single file namedfoo
single_dir.zip
: Contains a single directory namedfoo
, which contains filesfoo
andbar
.As you can see, neither example is a tarbomb.
Observed behavior
The following directory structure for extracted
single_file.zip
:single_file
(directory)foo
The following directory structure for extracted
single_dir.zip
:single_dir
(directory)foo
(directory)foo
bar
Expected behavior
The following directory structure for extracted
single_file.zip
:foo
The following directory structure for extracted
single_dir.zip
:foo
(directory)foo
bar
For actual tarbombs, the behavior should remain as it is.