From b9f42b6836a6ea7edf30ae04dcb82eedc1fa7c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E7=81=AB=E8=A1=8C=E8=80=85?= Date: Sat, 9 Oct 2021 16:17:27 +0800 Subject: [PATCH] bug fix --- 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 507edd7..e0b47bf 100644 --- a/src/Common/Utils.php +++ b/src/Common/Utils.php @@ -335,7 +335,7 @@ class Utils $host = $parseUrl['host']; $path = $parseUrl['path']; $domain = Request::capture()->getHost(); - if (!(strstr($host, 'myqcloud.com') || strstr($host, $domain)) || !strstr($path, 'public/attachments')) { + if (!(self::endWith($host, 'myqcloud.com') || strstr($host, $domain)) || !strstr($path, 'public/attachments')) { return false; } return true; -- Gitee