]> granicus.if.org Git - python/commitdiff
Mention issue6972 in extractall docs about overwriting things outside of
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 29 Sep 2009 21:56:31 +0000 (21:56 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 29 Sep 2009 21:56:31 +0000 (21:56 +0000)
the supplied path.

Doc/library/zipfile.rst

index ec357bb73b624f2cf3bdce29f5a57dfe0583dca8..0577f10f3ec80c04ec4437306bdbaf1fa394c840 100644 (file)
@@ -207,6 +207,13 @@ ZipFile Objects
    be a subset of the list returned by :meth:`namelist`.  *pwd* is the password
    used for encrypted files.
 
+   .. 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 ``".."``.
+
    .. versionadded:: 2.6