summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-31 23:29:41 +0000
committerColin Smith <colin@pfsense.org>2005-03-31 23:29:41 +0000
commit629185969c45b524fb07e0c4df4847439d9f2d4b (patch)
tree5ab1b628eeb76419544fe5215ab43db9bede63f1 /usr/local/www/xmlrpc.php
parent61b655b93d1b917c3c3d6ff810ef365d50862f34 (diff)
downloadpfsense-629185969c45b524fb07e0c4df4847439d9f2d4b.zip
pfsense-629185969c45b524fb07e0c4df4847439d9f2d4b.tar.gz
Fix array offset (first param starts at 0 after auth).
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 7a0f448..ca61ccc 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -96,7 +96,7 @@ $backup_config_section_sig = array(array(string, string, string));
function backup_config_section_xmlrpc($raw_params) {
$params = xmlrpc_params_to_php($raw_params); // Convert XML_RPC_Value objects to a PHP array of values.
if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string'));
- $val = new XML_RPC_Value(backup_config_section($params[1]), 'string');
+ $val = new XML_RPC_Value(backup_config_section($params[0]), 'string');
return new XML_RPC_Response($val);
}
OpenPOWER on IntegriCloud