diff options
author | Ermal <eri@pfsense.org> | 2011-03-30 22:21:13 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-30 22:21:13 +0000 |
commit | 56a8bbf3af358cdefed37da150189d2fff78fd73 (patch) | |
tree | 57a25a1d63c77a22b80dcc85f93881b7ba3bc63b /etc | |
parent | d5b45febd6e130dd0aa48588d3cb481f7f05eecb (diff) | |
download | pfsense-56a8bbf3af358cdefed37da150189d2fff78fd73.zip pfsense-56a8bbf3af358cdefed37da150189d2fff78fd73.tar.gz |
Test for value present before using.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/xmlrpc.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc index e722e9d..ca07cee 100644 --- a/etc/inc/xmlrpc.inc +++ b/etc/inc/xmlrpc.inc @@ -119,8 +119,8 @@ function xmlrpc_auth(&$params) { array_shift($params); unset($params['xmlrpcauth']); return true; - } else if (authenticate_user("admin", $params['xmlrpcauth'], $authcfg) || - authenticate_user("admin", $params['xmlrpcauth'])) { + } else if (!empty($params['xmlrpcauth']) && (authenticate_user("admin", $params['xmlrpcauth'], $authcfg) || + authenticate_user("admin", $params['xmlrpcauth']))) { array_shift($params); unset($params['xmlrpcauth']); return true; |