summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-30 22:13:55 +0000
committerErmal <eri@pfsense.org>2011-03-30 22:13:55 +0000
commitd5b45febd6e130dd0aa48588d3cb481f7f05eecb (patch)
tree595405c9dcf9c2d05026f2711c518b5f50e94dd2 /etc
parentccf46756fd4db1e6c2258abcda2cc54b21482859 (diff)
downloadpfsense-d5b45febd6e130dd0aa48588d3cb481f7f05eecb.zip
pfsense-d5b45febd6e130dd0aa48588d3cb481f7f05eecb.tar.gz
Test for value present before using.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/xmlrpc.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc
index d190a05..e722e9d 100644
--- a/etc/inc/xmlrpc.inc
+++ b/etc/inc/xmlrpc.inc
@@ -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;
OpenPOWER on IntegriCloud