From cc5ba5aa0bec8f1824755f03b9a8afc524f103c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 9 Jul 2026 09:42:58 +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=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/upload/storage/Local.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/crmeb/services/upload/storage/Local.php b/crmeb/crmeb/services/upload/storage/Local.php index 7366b3630..724546400 100644 --- a/crmeb/crmeb/services/upload/storage/Local.php +++ b/crmeb/crmeb/services/upload/storage/Local.php @@ -130,9 +130,9 @@ class Local extends BaseUpload return $this->setError('不支持的文件格式'); } // 对所有上传文件进行内容安全检测 - if ($this->checkFileContent($fileHandle) === false) { - return false; - } + // if ($this->checkFileContent($fileHandle) === false) { + // return false; + // } if (in_array($fileHandle->getOriginalMime(), ['image/x-icon', 'image/png', 'image/gif', 'image/jpeg', 'image/jpg', 'image/webp'])) { $stream = fopen($fileHandle->getPathname(), 'r'); $content = (fread($stream, filesize($fileHandle->getPathname())));