summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlrpc.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-10 23:44:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-10 23:44:11 +0000
commitb4883eedb6764fe9f866ac81f81206fea35eff1d (patch)
tree6cfd1b80523f4d870059253b917868ad155c6087 /etc/inc/xmlrpc.inc
parentdca17b8e748c32b2faf7fca08df9d23754857b5a (diff)
downloadpfsense-b4883eedb6764fe9f866ac81f81206fea35eff1d.zip
pfsense-b4883eedb6764fe9f866ac81f81206fea35eff1d.tar.gz
MFC 9998
Fix an unsettling logic error.
Diffstat (limited to 'etc/inc/xmlrpc.inc')
-rw-r--r--etc/inc/xmlrpc.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc
index ed47a19..3789a16 100644
--- a/etc/inc/xmlrpc.inc
+++ b/etc/inc/xmlrpc.inc
@@ -105,13 +105,13 @@ function xmlrpc_auth(&$params) {
global $config;
$localpass = $config['system']['password'];
if(crypt($params[0], $localpass) == $localpass) {
- array_shift($params);
+ unset($params[0]);
return true;
- } elseif(crypt($params['xmlrpcauth'], $localpass) != $localpass) {
+ } elseif(crypt($params['xmlrpcauth'], $localpass) == $localpass) {
unset($params['xmlrpcauth']);
return true;
}
return false;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud