From a392285ddae916d9952234a3a4d819877bf6be3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Wed, 23 Apr 2025 17:47:57 +0800 Subject: [PATCH] Update channelunit.helper.php --- src/system/helpers/channelunit.helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index 42624da2..f09376f3 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -72,7 +72,7 @@ if (!function_exists('GetFileUrl')) { if ($moresite == 1) { $articleUrl = preg_replace("#^".$sitepath.'#', '', $articleUrl); } - if (!preg_match("/http:/", $articleUrl)) { + if (!preg_match("/^(http|https):\/\//", $articleUrl)) { $articleUrl = $siteurl.$articleUrl; } }