diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index f09376f3..32bd37b3 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -612,7 +612,7 @@ function GetHotKeywords(&$dsql, $num = 8, $nday = 365, $klen = 16, $orderby = 'c */ function Gmapurl($gurl) { - return preg_match("/http[s]?:\/\//i", $gurl) ? $gurl : $GLOBALS['cfg_basehost'].$gurl; + return preg_match("#^(http|https):\/\/#i", $gurl) ? $gurl : $GLOBALS['cfg_basehost'].$gurl; } /** * 引用回复标记处理