过滤输入参数,防止XSS攻击

This commit is contained in:
zyx0814 2024-10-24 11:45:12 +08:00
parent 17f416005c
commit 5404f19431

View File

@ -14,7 +14,7 @@ Hook::listen('check_login');
include_once libfile('function/organization');
$ismobile=helper_browser::ismobile();
$uid =isset($_GET['uid'])?intval($_GET['uid']):$_G['uid'];
$zero=$_GET['zero']?urldecode($_GET['zero']):lang('no_institution_users');
$zero=$_GET['zero']?htmlspecialchars($_GET['zero']):lang('no_institution_users');
$limit=1000;
if($_GET['do']=='orgtree'){