mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
fixed function to send xmlrpc-faults (error-msg) from the handler, was not loged in the log-file
This commit is contained in:
parent
9ed6f2e60d
commit
49d9007518
@ -23,7 +23,7 @@
|
|||||||
{
|
{
|
||||||
var $server = '';
|
var $server = '';
|
||||||
var $authed = True;
|
var $authed = True;
|
||||||
var $log = '/tmp/xmlrpc_request_log';
|
var $log = False; //'/tmp/xmlrpc.log';
|
||||||
var $last_method = '';
|
var $last_method = '';
|
||||||
|
|
||||||
function xmlrpc_server($dispMap='', $serviceNow=0)
|
function xmlrpc_server($dispMap='', $serviceNow=0)
|
||||||
@ -43,9 +43,12 @@
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
function service()
|
function service($r = False)
|
||||||
{
|
{
|
||||||
$r = $this->parseRequest();
|
if (!$r) // do we have a response, or we need to parse the request
|
||||||
|
{
|
||||||
|
$r = $this->parseRequest();
|
||||||
|
}
|
||||||
if(!$r)
|
if(!$r)
|
||||||
{
|
{
|
||||||
header('WWW-Authenticate: Basic realm="eGroupWare xmlrpc"');
|
header('WWW-Authenticate: Basic realm="eGroupWare xmlrpc"');
|
||||||
@ -308,7 +311,7 @@
|
|||||||
xmlrpc_error(1005,$error_string);
|
xmlrpc_error(1005,$error_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
function xmlrpc_error($error_number, $error_string)
|
function xmlrpc_error($error_number, $error_string)
|
||||||
{
|
{
|
||||||
$values = array(
|
$values = array(
|
||||||
@ -321,4 +324,15 @@
|
|||||||
xmlrpc_server_destroy($GLOBALS['xmlrpc_server']);
|
xmlrpc_server_destroy($GLOBALS['xmlrpc_server']);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
function xmlrpc_error($error_number, $error_string)
|
||||||
|
{
|
||||||
|
$r = CreateObject('phpgwapi.xmlrpcresp',
|
||||||
|
'',
|
||||||
|
$error_number,
|
||||||
|
$error_string . ': ' . $this->last_method
|
||||||
|
);
|
||||||
|
$this->service($r);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user