fix: drhider _build_zip metadata_encoding=utf-8 (Cyrillic filenames)
Deploy contracts-flask / validate (push) Successful in 0s
Deploy contracts-flask / validate (push) Successful in 0s
This commit is contained in:
@@ -461,7 +461,7 @@ class TwoPassObfuscator:
|
||||
def _build_zip(self, files: List[Tuple[str, bytes]], mapping_csv: str = "") -> bytes:
|
||||
"""Собрать ZIP с обфусцированными файлами + mapping.csv."""
|
||||
buf = io.BytesIO()
|
||||
with zipfile.ZipFile(buf, 'w', zipfile.ZIP_DEFLATED) as zf:
|
||||
with zipfile.ZipFile(buf, 'w', zipfile.ZIP_DEFLATED, metadata_encoding='utf-8') as zf:
|
||||
for fname, content in files:
|
||||
zf.writestr(fname, content)
|
||||
if mapping_csv:
|
||||
|
||||
@@ -453,7 +453,7 @@ class TwoPassObfuscator:
|
||||
def _build_zip(self, files: List[Tuple[str, bytes]], mapping_csv: str = "") -> bytes:
|
||||
"""Собрать ZIP с обфусцированными файлами + mapping.csv."""
|
||||
buf = io.BytesIO()
|
||||
with zipfile.ZipFile(buf, 'w', zipfile.ZIP_DEFLATED) as zf:
|
||||
with zipfile.ZipFile(buf, 'w', zipfile.ZIP_DEFLATED, metadata_encoding='utf-8') as zf:
|
||||
for fname, content in files:
|
||||
zf.writestr(fname, content)
|
||||
if mapping_csv:
|
||||
|
||||
Reference in New Issue
Block a user