Fix at least one error with zipfile downloads and file permissions not being set correctly.

This commit is contained in:
Dannon Baker
2015-02-12 07:57:51 -05:00
parent 2822b64d3e
commit 6a46ea7d50
+1 -1
View File
@@ -463,7 +463,7 @@ def unpack_zipfile( filename, extract_dir, ignores=[] ):
try:
for info in z.infolist():
name = info.filename
perm = (info.external_attr >> 16L) & 0777
mode = (info.external_attr >> 16L) & 0777
# don't extract absolute paths or ones with .. in them
if name.startswith('/') or '..' in name:
continue