diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-02-08 06:15:04 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-02-08 06:15:04 (GMT) |
commit | f1319d81f71512b464336c778089a5fe168fef93 (patch) | |
tree | 038dbbd83ce87229d08715cc463199bee4681495 /Doc/library/zipfile.rst | |
parent | d03f467dc218e7b1d9125343ef9908b08fe7b91a (diff) | |
download | cpython-f1319d81f71512b464336c778089a5fe168fef93.zip cpython-f1319d81f71512b464336c778089a5fe168fef93.tar.gz cpython-f1319d81f71512b464336c778089a5fe168fef93.tar.bz2 |
Issue #6972: keep the warning about untrusted extraction and mention
the version it was improved in.
Diffstat (limited to 'Doc/library/zipfile.rst')
-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 d210720..d82ab06 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -232,9 +232,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.2.4 + The zipfile module attempts to prevent that. See :meth:`extract` note. .. method:: ZipFile.printdir() |