From 257e04bf9183b5a173b8fef395470f64abd56109 Mon Sep 17 00:00:00 2001 From: aa820t Date: Tue, 1 Aug 2023 07:57:06 +0800 Subject: [PATCH] =?UTF-8?q?cdnurl($url,=20true)=E5=BD=93url=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA,=E4=B8=94=E5=B8=A6=E5=9F=9F=E5=90=8D=E6=97=B6,?= =?UTF-8?q?=E4=B9=9F=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/common.php b/application/common.php index 68b9e582..f12cae60 100755 --- a/application/common.php +++ b/application/common.php @@ -87,6 +87,7 @@ if (!function_exists('cdnurl')) { */ function cdnurl($url, $domain = false) { + if(!$url) return ''; $regex = "/^((?:[a-z]+:)?\/\/|data:image\/)(.*)/i"; if (is_bool($domain)) { $cdnurl = \think\Config::get('upload.cdnurl');