diff --git a/src/Common/Utils.php b/src/Common/Utils.php index 74f2076d63add6d6d22210f32adb2d6801b9ac17..838e83a6455ab4179c538faaea587a6e8e9fb793 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 (!(self::endWith($host, 'myqcloud.com') || strstr($host, $domain)) || !strstr($path, 'public/attachments')) { + if (!(self::endWith($host, 'myqcloud.com') || self::endWith($host, $domain)) || !strstr($path, 'public/attachments')) { return false; } return true;