fix: _expand_zips — inner_name → name (ZIP was never expanded)
Deploy contracts-flask / validate (push) Successful in 0s
Deploy contracts-flask / validate (push) Successful in 0s
This commit is contained in:
@@ -265,7 +265,7 @@ class TwoPassObfuscator:
|
|||||||
if not name or name.endswith("/") or ".." in name or "/" in name or "\\" in name:
|
if not name or name.endswith("/") or ".." in name or "/" in name or "\\" in name:
|
||||||
continue
|
continue
|
||||||
inner_data = zf.read(info)
|
inner_data = zf.read(info)
|
||||||
result.append((inner_name, inner_data, ""))
|
result.append((name, inner_data, ""))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.warning("Failed to expand ZIP %s: %s", fname, e)
|
log.warning("Failed to expand ZIP %s: %s", fname, e)
|
||||||
result.append((fname, content, ctype))
|
result.append((fname, content, ctype))
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ class TwoPassObfuscator:
|
|||||||
if not name or name.endswith("/") or ".." in name or "/" in name or "\\" in name:
|
if not name or name.endswith("/") or ".." in name or "/" in name or "\\" in name:
|
||||||
continue
|
continue
|
||||||
inner_data = zf.read(info)
|
inner_data = zf.read(info)
|
||||||
result.append((inner_name, inner_data, ""))
|
result.append((name, inner_data, ""))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.warning("Failed to expand ZIP %s: %s", fname, e)
|
log.warning("Failed to expand ZIP %s: %s", fname, e)
|
||||||
result.append((fname, content, ctype))
|
result.append((fname, content, ctype))
|
||||||
|
|||||||
Reference in New Issue
Block a user