瀏覽代碼

Merge branch 'develop' into adminweb

tags/6.5.8
叙述、别离 1 周之前
父節點
當前提交
8cd207de90
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      src/apps/search.php
  2. +2
    -2
      src/system/helpers/channelunit.helper.php

+ 1
- 1
src/apps/search.php 查看文件

@@ -57,7 +57,7 @@ $typeid = intval($typeid);
$keyword = addslashes(cn_substr($keyword, 30));
$typeid = intval($typeid);
//判断关键词是否输入违禁词,在后台-系统设置:禁用关键词添加
if (preg_match("#".$cfg_notallowstr."#i", $keyword)) {
if (!empty($cfg_notallowstr) && preg_match("#".$cfg_notallowstr."#i", $keyword)) {
ShowMsg("您输入的关键词存在违禁,请重新填写", "-1");
exit();
}


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


Loading…
取消
儲存