diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-02-08 06:15:51 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-02-08 06:15:51 (GMT) |
commit | 5546b002de96ce8e8d2104232e46ca16889c96cd (patch) | |
tree | b71c08bd4dc4918278015dcfd02715e1c349ae99 /Doc/library | |
parent | cf6e21ccef5769d6a73a1ebec1ab8e5146ad3def (diff) | |
parent | f1319d81f71512b464336c778089a5fe168fef93 (diff) | |
download | cpython-5546b002de96ce8e8d2104232e46ca16889c96cd.zip cpython-5546b002de96ce8e8d2104232e46ca16889c96cd.tar.gz cpython-5546b002de96ce8e8d2104232e46ca16889c96cd.tar.bz2 |
Issue #6972: keep the warning about untrusted extraction and mention
the version it was improved in.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/zipfile.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index b00e26d..c63b23b 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -260,9 +260,15 @@ ZipFile Objects be a subset of the list returned by :meth:`namelist`. *pwd* is the password used for encrypted files. - .. note:: + .. warning:: + + Never extract archives from untrusted sources without prior inspection. + It is possible that files are created outside of *path*, e.g. members + that have absolute filenames starting with ``"/"`` or filenames with two + dots ``".."``. - See :meth:`extract` note. + .. versionchanged:: 3.3.1 + The zipfile module attempts to prevent that. See :meth:`extract` note. .. method:: ZipFile.printdir() |