diff --git a/src/Common/Utils.php b/src/Common/Utils.php index 77ea78e95cd867a5a155be2c8311d56cadcaf5fa..7f9f90830611ce1cbd4b43b8bc4e7299ec16cacb 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;