[Python-checkins] r75149 - python/trunk/Doc/library/zipfile.rst

gregory.p.smith python-checkins at python.org
Tue Sep 29 23:56:31 CEST 2009


Author: gregory.p.smith
Date: Tue Sep 29 23:56:31 2009
New Revision: 75149

Log:
Mention issue6972 in extractall docs about overwriting things outside of
the supplied path.


Modified:
   python/trunk/Doc/library/zipfile.rst

Modified: python/trunk/Doc/library/zipfile.rst
==============================================================================
--- python/trunk/Doc/library/zipfile.rst	(original)
+++ python/trunk/Doc/library/zipfile.rst	Tue Sep 29 23:56:31 2009
@@ -207,6 +207,13 @@
    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
 
 


More information about the Python-checkins mailing list