Skip to content

Commit

Permalink
MDL16286 - bugfixes
Browse files Browse the repository at this point in the history
Author: Peter Bulmer <[email protected]>
  • Loading branch information
peterbulmer committed Sep 28, 2008
1 parent 8d60e94 commit 334e66c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mnet/xmlrpc/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function send($mnet_peer) {
global $CFG, $MNET, $DB;


if (!$this->permission_to_call($mnet_peer) {
if (!$this->permission_to_call($mnet_peer)) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions mnet/xmlrpc/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
$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);
Expand Down

0 comments on commit 334e66c

Please sign in to comment.