소스 검색

Update channelunit.helper.php

调整开启绝对路径下,根网址重复问题
adminsite
叙述、别离 6 일 전
부모
커밋
568307ca4a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/system/helpers/channelunit.helper.php

+ 1
- 1
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;
}
/**
* 引用回复标记处理


불러오는 중...
취소
저장