From 2d1d5ddd9584dca885107b499e4a965c9284ce13 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Thu, 28 Mar 2019 18:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=B8=8A=E4=BC=A0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/PluginsAdminService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index b559e1af2..d1dbd2a65 100755 --- a/application/service/PluginsAdminService.php +++ b/application/service/PluginsAdminService.php @@ -905,6 +905,11 @@ php; // 开始解压文件 $resource = zip_open($_FILES['file']['tmp_name']); + if(!is_resource($resource)) + { + return DataReturn('压缩包打开失败['.$resource.']', -10); + } + while(($temp_resource = zip_read($resource)) !== false) { if(zip_entry_open($resource, $temp_resource))