summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-30 21:49:51 +0000
committerErmal <eri@pfsense.org>2011-03-30 21:49:51 +0000
commitccf46756fd4db1e6c2258abcda2cc54b21482859 (patch)
tree81ea334002f08df00ae1aed1b8434e2c0fb8d1df /etc
parentcb0e3f8e7cf6bfba6f40477944bde48d21318891 (diff)
downloadpfsense-ccf46756fd4db1e6c2258abcda2cc54b21482859.zip
pfsense-ccf46756fd4db1e6c2258abcda2cc54b21482859.tar.gz
Unset xmlrpcauth and not the first member of the array.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/xmlrpc.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc
index 72a368e..d190a05 100644
--- a/etc/inc/xmlrpc.inc
+++ b/etc/inc/xmlrpc.inc
@@ -117,7 +117,7 @@ function xmlrpc_auth(&$params) {
if (authenticate_user("admin", $params[0], $authcfg) ||
authenticate_user("admin", $params[0])) {
array_shift($params);
- unset($params['0']);
+ unset($params['xmlrpcauth']);
return true;
} else if (authenticate_user("admin", $params['xmlrpcauth'], $authcfg) ||
authenticate_user("admin", $params['xmlrpcauth'])) {
@@ -127,7 +127,7 @@ function xmlrpc_auth(&$params) {
}
} else if (authenticate_user("admin", $params[0])) {
array_shift($params);
- unset($params['0']);
+ unset($params['xmlrpcauth']);
return true;
} else if (authenticate_user("admin", $params['xmlrpcauth'])) {
array_shift($params);
OpenPOWER on IntegriCloud