diff --git a/src/Common/Utils.php b/src/Common/Utils.php index bc1e72229ea92e0d3578966da0ecbe77e1093624..c0df8cd070a01b70dbff349c0d0f35f9dd23519e 100644 --- a/src/Common/Utils.php +++ b/src/Common/Utils.php @@ -346,6 +346,9 @@ class Utils public static function isCosUrl($url) { + if (!preg_match('/https?:\/\/.+/i', $url)) { + return false; + } $parseUrl = parse_url($url); $host = $parseUrl['host']; $path = $parseUrl['path'];