From 437b3c11dd604d0bf0437d4857ac4ce17af1be43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E7=81=AB=E8=A1=8C=E8=80=85?= Date: Fri, 15 Oct 2021 11:57:57 +0800 Subject: [PATCH] =?UTF-8?q?cos=E5=9F=9F=E5=90=8D=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/Utils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Common/Utils.php b/src/Common/Utils.php index 77ea78e..7f9f908 100644 --- a/src/Common/Utils.php +++ b/src/Common/Utils.php @@ -351,9 +351,8 @@ class Utils } $parseUrl = parse_url($url); $host = $parseUrl['host']; - $path = $parseUrl['path']; $domain = Request::capture()->getHost(); - if (!(preg_match('/^.+cos.+myqcloud\.com$/', $host) || self::endWith($host, $domain)) || !strstr($path, 'public/attachments')) { + if (!(preg_match('/^.+cos.+myqcloud\.com$/', $host) || self::endWith($host, $domain))) { return false; } return true; -- Gitee