修复 XSS漏洞

This commit is contained in:
Discuz! 2017-01-22 11:18:20 +08:00
parent 2fc282fbd8
commit 173adfa3f3
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,9 @@ if($count) {
if($_G['uid']) {
$_GET['view'] = !$_GET['view'] ? 'we' : $_GET['view'];
$navtitle = lang('core', 'title_'.$_GET['view'].'_trade');
if($navtitle == 'title_'.$_GET['view'].'_trade') {
$navtitle = lang('core', 'title_trade');
}
} else {
$navtitle = lang('core', 'title_trade');
}