mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix at least one error with zipfile downloads and file permissions not being set correctly.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user