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; } }