From f89652cc2c3cc01255d789f4f548c546a94c9c25 Mon Sep 17 00:00:00 2001 From: tianya Date: Mon, 21 Apr 2025 23:01:16 +0800 Subject: [PATCH] Update channelunit.helper.php --- src/system/helpers/channelunit.helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index f9ba4ff1..42624da2 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -161,7 +161,7 @@ if (!function_exists('GetTypeUrl')) { else $reurl = $typedir.'/'; } } - if (!preg_match("/^http:\/\//", $reurl)) { + if (!preg_match("/^(http|https):\/\//", $reurl)) { $reurl = preg_replace("/\/{1,}/i", '/', $reurl); } if ($GLOBALS['cfg_multi_site'] == 'Y') { @@ -171,7 +171,7 @@ if (!function_exists('GetTypeUrl')) { if ($moresite == 1) { $reurl = preg_replace("#^".$sitepath."#", '', $reurl); } - if (!preg_match("/^http:\/\//", $reurl)) { + if (!preg_match("/^(http|https):\/\//", $reurl)) { $reurl = $siteurl.$reurl; } }