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