From 7f4812a9d182a7935f8cc29ebed74a666e52c7dd Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 19 Sep 2023 18:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B05.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/product/product/CopyTaobaoServices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/services/product/product/CopyTaobaoServices.php b/crmeb/app/services/product/product/CopyTaobaoServices.php index 6a9a4cf07..d46190385 100644 --- a/crmeb/app/services/product/product/CopyTaobaoServices.php +++ b/crmeb/app/services/product/product/CopyTaobaoServices.php @@ -287,7 +287,7 @@ class CopyTaobaoServices extends BaseServices } else { $ext = $this->getImageExtname($name)['ext_name']; } - if (in_array($ext, ['php', 'js', 'html'])) { + if (!in_array($ext, ['jpg', 'jpeg', 'png', 'gif', 'JPG', 'JPEG', 'PNG', 'GIF'])) { throw new AdminException(400558); } //TODO 获取远程文件所采用的方法