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