]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-112795: Allow `/` folder in a zipfile (GH-112932) (#113789)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Jan 2024 01:45:37 +0000 (02:45 +0100)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 01:45:37 +0000 (01:45 +0000)
commitdb6f297d448ce46e58a5b90239a4779553333198
tree5815dc2c1e9fb9c7ca5128d0228d11d585044f44
parent4d5328cbebc441ed2539ad3b2ea30a01eb059ef7
[3.12] gh-112795: Allow `/` folder in a zipfile (GH-112932) (#113789)

gh-112795: Allow `/` folder in a zipfile (GH-112932)

Allow extraction (no-op) of a "/" folder in a zipfile, they are commonly added by some archive creation tools.

(cherry picked from commit 541c5dbb81c784afd587406be2cc82645979a107)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/test_zipfile/_path/test_path.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Library/2024-01-07-00-56-41.gh-issue-112932.OfhUu7.rst [new file with mode: 0644]