diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-02-08 06:17:21 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-02-08 06:17:21 (GMT) |
commit | 1d824ec9b343be008e03443114e3e9b918aea0df (patch) | |
tree | 6b715f48a898ae950b67057e904d8f228a6a34e2 /Doc/library/zipfile.rst | |
parent | 5eda539591835d653541b080493c0920029aa51f (diff) | |
parent | 5546b002de96ce8e8d2104232e46ca16889c96cd (diff) | |
download | cpython-1d824ec9b343be008e03443114e3e9b918aea0df.zip cpython-1d824ec9b343be008e03443114e3e9b918aea0df.tar.gz cpython-1d824ec9b343be008e03443114e3e9b918aea0df.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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index b00e26d..e84c707 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -260,8 +260,12 @@ 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 ``".."``. This module attempts to prevent that. See :meth:`extract` note. |