Revision ccf46756
Added by Ermal LUÇI over 14 years ago
etc/inc/xmlrpc.inc | ||
---|---|---|
117 | 117 |
if (authenticate_user("admin", $params[0], $authcfg) || |
118 | 118 |
authenticate_user("admin", $params[0])) { |
119 | 119 |
array_shift($params); |
120 |
unset($params['0']);
|
|
120 |
unset($params['xmlrpcauth']);
|
|
121 | 121 |
return true; |
122 | 122 |
} else if (authenticate_user("admin", $params['xmlrpcauth'], $authcfg) || |
123 | 123 |
authenticate_user("admin", $params['xmlrpcauth'])) { |
... | ... | |
127 | 127 |
} |
128 | 128 |
} else if (authenticate_user("admin", $params[0])) { |
129 | 129 |
array_shift($params); |
130 |
unset($params['0']);
|
|
130 |
unset($params['xmlrpcauth']);
|
|
131 | 131 |
return true; |
132 | 132 |
} else if (authenticate_user("admin", $params['xmlrpcauth'])) { |
133 | 133 |
array_shift($params); |
Also available in: Unified diff
Unset xmlrpcauth and not the first member of the array.