修复网站名称含有特殊字符时页面报错问题
This commit is contained in:
@@ -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');//检查是否登录,未登录跳转到登录界面
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user