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