]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #6972: keep the warning about untrusted extraction and mention
authorGregory P. Smith <greg@krypto.org>
Fri, 8 Feb 2013 06:15:04 +0000 (22:15 -0800)
committerGregory P. Smith <greg@krypto.org>
Fri, 8 Feb 2013 06:15:04 +0000 (22:15 -0800)
the version it was improved in.

Doc/library/zipfile.rst

index d2107200e03e8315d6ec9c3dd20882359dc42135..d82ab0633c3147aff5f752d3eee310dbf65544b3 100644 (file)
@@ -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()