修复网站名称含有特殊字符时页面报错问题

This commit is contained in:
zyx0814
2024-05-16 18:01:14 +08:00
Unverified
parent 8854c3d956
commit 4f2456e4f5
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
if (!defined('IN_OAOOA')) {
exit('Access Denied');
}
global $_G;
$_G['setting']['sitename']=addslashes($_G['setting']['sitename']);
$overt = getglobal('setting/overt');
if (!$overt && !$overt = C::t('setting')->fetch('overt')) {
Hook::listen('check_login');//检查是否登录,未登录跳转到登录界面

View File

@@ -3,7 +3,7 @@
if (!defined('IN_OAOOA')) {
exit('Access Denied');
}
$_G['setting']['sitename']=addslashes($_G['setting']['sitename']);
$operation = isset($_GET['operation']) ? trim($_GET['operation']) : '';
global $_G;
if ($operation == 'filelist') {