From 12be56b450a7e8720ae2f826a0e19261cde04d0a Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Thu, 21 Apr 2022 19:07:54 +0800 Subject: [PATCH] =?UTF-8?q?url=E5=88=A4=E6=96=AD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common.php b/app/common.php index ea9d3f72e..2227d56a8 100755 --- a/app/common.php +++ b/app/common.php @@ -317,7 +317,7 @@ function GetHttpCode($url, $timeout = 5) */ function IsUrl($value) { - return in_array(substr($value, 0, 6), ['http:/', 'https:']); + return empty($value) ? false : in_array(substr($value, 0, 6), ['http:/', 'https:']); } /**