!107 修复 接口调用遗漏 addslashes

Merge pull request !107 from Coxxs/fix/uc_api
This commit is contained in:
Coxxs 2017-08-21 10:54:44 +08:00 committed by Discuz!
parent 6eeff067aa
commit 4e1fbd6dc2
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ if($_GET['op'] == 'checknewpm') {
}
$username = $_GET['username'];
if(!$username || !uc_get_user($username)) {
if(!$username || !uc_get_user(addslashes($username))) {
showmessage('pm_ignore_error_nopm');
}