◐ Shell
clean mode source ↗

gh-111791: delegating extraction to zipfile module's extractall() method by sepastian · Pull Request #111824 · python/cpython

…to zipfile

shutil.unpack_archive fails, if file name contains '..'; zipfile handles everything correctly, i.e. in the same way than 'unzip'; let zipfile unpack archives, instead of reinventing the wheel here

@sepastian

@blurb-it

@sepastian sepastian changed the title fixing #111791: delegating extraction to zipfile delegating extraction to zipfile, fixing #111791

Nov 7, 2023

@sepastian sepastian changed the title delegating extraction to zipfile, fixing #111791 gh-111791: delegating extraction to zipfile module's extractall() method

Nov 7, 2023
Filenames containing two dots ".." do not necessarily indicate relative path components. Only "../" identify a relative path component.

This was referenced

Dec 16, 2023