summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2007-10-14 16:21:00 +0000
committerBill Marquette <billm@pfsense.org>2007-10-14 16:21:00 +0000
commitb4d19b466754a9e467f7885d65cc79bd7f424997 (patch)
tree012edf1a43794f079f7c96dad302558abb183c19 /usr/local
parent518887aaddd76d412f54c7b384702bd4eeb9fd4e (diff)
downloadpfsense-b4d19b466754a9e467f7885d65cc79bd7f424997.zip
pfsense-b4d19b466754a9e467f7885d65cc79bd7f424997.tar.gz
Fix check_firmware_version description
All XMLRPC functions should be authenticated MFC: ASAP
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/xmlrpc.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 8a9b071..653b6ee 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -150,7 +150,7 @@ function filter_configure_xmlrpc($raw_params) {
/*****************************/
-$check_firmware_version_doc = 'Basic XMLRPC wrapper for filter_configure. This function will return the output of check_firmware_version upon completion.';
+$check_firmware_version_doc = 'Basic XMLRPC wrapper for check_firmware_version. This function will return the output of check_firmware_version upon completion.';
$check_firmware_version_sig = array(
array(
$XML_RPC_String,
@@ -159,7 +159,9 @@ $check_firmware_version_sig = array(
);
function check_firmware_version_xmlrpc($raw_params) {
- global $XML_RPC_String;
+ global $xmlrpc_g, $XML_RPC_String;
+ $params = xmlrpc_params_to_php($raw_params);
+ if(!xmlrpc_auth($params)) return $xmlrpc_g['return']['authfail'];
return new XML_RPC_Response(new XML_RPC_Value(check_firmware_version(false), $XML_RPC_String));
}
@@ -190,6 +192,8 @@ $get_notices_sig = array(
function get_notices_xmlrpc($raw_params) {
global $g, $xmlrpc_g;
+ $params = xmlrpc_params_to_php($raw_params);
+ if(!xmlrpc_auth($params)) return $xmlrpc_g['return']['authfail'];
require_once("notices.inc");
$params = array_pop(xmlrpc_params_to_php($raw_params));
if(!$params) {
@@ -244,4 +248,4 @@ $server = new XML_RPC_Server(
'signature' => $get_notices_sig)
)
);
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud