From 4a38d7f9c76e7563fa1a8cccf792a3453796117d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E7=81=AB=E8=A1=8C=E8=80=85?= Date: Tue, 12 Oct 2021 11:20:58 +0800 Subject: [PATCH] no message --- src/Common/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/Utils.php b/src/Common/Utils.php index 62a1128..bc1e722 100644 --- a/src/Common/Utils.php +++ b/src/Common/Utils.php @@ -350,7 +350,7 @@ class Utils $host = $parseUrl['host']; $path = $parseUrl['path']; $domain = Request::capture()->getHost(); - if (!(preg_match('/^https?.+cos.+myqcloud\.com$/', $host) || self::endWith($host, $domain)) || !strstr($path, 'public/attachments')) { + if (!(preg_match('/^.+cos.+myqcloud\.com$/', $host) || self::endWith($host, $domain)) || !strstr($path, 'public/attachments')) { return false; } return true; -- Gitee