Просмотр исходного кода

Merge branch 'develop' into adminweb

tags/6.5.8
叙述、别离 1 неделю назад
Родитель
Сommit
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;
}
}


Загрузка…
Отмена
Сохранить