mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Test for value present before using.
This commit is contained in:
parent
ccf46756fd
commit
d5b45febd6
@ -129,7 +129,7 @@ function xmlrpc_auth(&$params) {
|
||||
array_shift($params);
|
||||
unset($params['xmlrpcauth']);
|
||||
return true;
|
||||
} else if (authenticate_user("admin", $params['xmlrpcauth'])) {
|
||||
} else if (!empty($params['xmlrpcauth']) && authenticate_user("admin", $params['xmlrpcauth'])) {
|
||||
array_shift($params);
|
||||
unset($params['xmlrpcauth']);
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user