From 71f5710bba9a4353b351e3032761938615404592 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 5 Dec 2020 01:12:29 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BB=D0=B8=D0=BC=D0=B8=D1=82=20=D0=BA=D0=BE=D0=BB?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=B0=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D1=81?= =?UTF-8?q?=D0=BF=D0=B0=D0=BA=D0=BE=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/FileDecompressor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/FileDecompressor.js b/server/core/FileDecompressor.js index 2cdcc869..ebd09fe5 100644 --- a/server/core/FileDecompressor.js +++ b/server/core/FileDecompressor.js @@ -135,7 +135,7 @@ class FileDecompressor { try { return await zip.unpack(filename, outputDir, { limitFileSize: this.limitFileSize, - limitFileCount: 1000, + limitFileCount: 10000, decodeEntryNameCallback: (nameRaw) => { return utils.bufferRemoveZeroes(nameRaw); } @@ -144,7 +144,7 @@ class FileDecompressor { fs.emptyDir(outputDir); return await zip.unpack(filename, outputDir, { limitFileSize: this.limitFileSize, - limitFileCount: 1000, + limitFileCount: 10000, decodeEntryNameCallback: (nameRaw) => { nameRaw = utils.bufferRemoveZeroes(nameRaw); const enc = textUtils.getEncodingLite(nameRaw);