diff --git a/src/Common/Utils.php b/src/Common/Utils.php index 507edd72552e9c8a58fda7275e5486091f64b7b2..e0b47bf92b37523d51aac092c372b0d6dc58b189 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;