MDL16286 - bugfixes

Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
This commit is contained in:
peterbulmer 2008-09-28 04:19:45 +00:00
parent 8d60e9427d
commit 334e66c1c2
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ class mnet_xmlrpc_client {
global $CFG, $MNET, $DB;
if (!$this->permission_to_call($mnet_peer) {
if (!$this->permission_to_call($mnet_peer)) {
return false;
}

View File

@ -48,11 +48,11 @@ $MNET_REMOTE_CLIENT = new mnet_remote_client();
$plaintextmessage = mnet_server_strip_encryption($HTTP_RAW_POST_DATA);
$xmlrpcrequest = mnet_server_strip_signature($plaintextmessage);
if($this->pushkey == true) {
if($MNET_REMOTE_CLIENT->pushkey == true) {
// The peer used one of our older public keys, we will return a
// signed/encrypted error message containing our new public key
// Sign message with our old key, and encrypt to the peer's private key.
exit(mnet_server_fault_xml(7025, $MNET->public_key, $this->useprivatekey));
exit(mnet_server_fault_xml(7025, $MNET->public_key, $MNET_REMOTE_CLIENT->useprivatekey));
}
// Have a peek at what the request would be if we were to process it
$params = xmlrpc_decode_request($xmlrpcrequest, $method);