浏览代码

Update channelunit.helper.php

tags/6.5.8
tianya 1周前
父节点
当前提交
f89652cc2c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/system/helpers/channelunit.helper.php

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


正在加载...
取消
保存