summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2010-01-09 14:39:16 -0500
committerScott Ullrich <sullrich@pfSense.org>2010-01-09 14:40:03 -0500
commitb298dd06f9985d9543de099afa401d5019aad7f9 (patch)
tree1fc1972ad309b302778145372b75c74495bbe668 /usr/local/www/xmlrpc.php
parentf07cb7ce38788e165a171bc8143386c909b87b7a (diff)
downloadpfsense-b298dd06f9985d9543de099afa401d5019aad7f9.zip
pfsense-b298dd06f9985d9543de099afa401d5019aad7f9.tar.gz
Return 'Authentication failed' instead of a non standard type which results in kindOf() errors.
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 5ac31ea..bc9bf23 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -46,6 +46,8 @@ require("xmlrpc_server.inc");
require("xmlrpc.inc");
require("array_intersect_key.inc");
+$GLOBALS['XML_RPC_erruser'] = 800;
+
/* grab sync to ip if enabled */
if($config['installedpackages']['carpsettings']) {
if ($config['installedpackages']['carpsettings']['config']) {
@@ -66,7 +68,7 @@ $xmlrpc_g = array(
"return" => array(
"true" => new XML_RPC_Response(new XML_RPC_Value(true, $XML_RPC_Boolean)),
"false" => new XML_RPC_Response(new XML_RPC_Value(false, $XML_RPC_Boolean)),
- "authfail" => new XML_RPC_Response(0, $XML_RPC_erruser+1, "Authentication failure")
+ "authfail" => new XML_RPC_Response(new XML_RPC_Value("Authentication failed", $XML_RPC_String))
)
);
@@ -343,4 +345,5 @@ $server = new XML_RPC_Server(
'signature' => $get_notices_sig)
)
);
-?>
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud