diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2010-01-09 14:39:16 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2010-01-09 14:40:03 -0500 |
commit | b298dd06f9985d9543de099afa401d5019aad7f9 (patch) | |
tree | 1fc1972ad309b302778145372b75c74495bbe668 /usr | |
parent | f07cb7ce38788e165a171bc8143386c909b87b7a (diff) | |
download | pfsense-b298dd06f9985d9543de099afa401d5019aad7f9.zip pfsense-b298dd06f9985d9543de099afa401d5019aad7f9.tar.gz |
Return 'Authentication failed' instead of a non standard type which results in kindOf() errors.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/xmlrpc.php | 7 |
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 |