From ccf46756fd4db1e6c2258abcda2cc54b21482859 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 30 Mar 2011 21:49:51 +0000 Subject: Unset xmlrpcauth and not the first member of the array. --- etc/inc/xmlrpc.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') 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); -- cgit v1.1