diff options
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index 13951642..ab28eebb 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -299,11 +299,16 @@ function session_exists($sid,$xml_rpc=0) { $path = str_replace("//","/",$path); + /* Create the XMLRPC client */ $client = new xmlrpc_client($path,$server,$port); - $query = new xmlrpcmsg('remote_session_verify',array(new xmlrpcval($sid,"string")) ); - - if (conf('debug')) { log_event($_SESSION['userdata']['username'],' xmlrpc-client ',"Checking for Valid Remote Session:$sid"); } + /* Encode the SID of the incomming client */ + $encoded_sid = new xmlrpcval($sid,"string"); + + $query = new xmlrpcmsg('remote_session_verify',array($encoded_sid) ); + + /* Log this event */ + debug_event('xmlrpc-client',"Checking for Valid Remote Session:$sid",'3'); $response = $client->send($query,30); |