From: Penny Leach Date: Wed, 13 Jan 2010 03:46:45 +0000 (+0000) Subject: mnet MDL-21294 fixed some errors in the new mnet exception stuff X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c0b22a3f96266637a41512de79447de068e52b40;p=moodle.git mnet MDL-21294 fixed some errors in the new mnet exception stuff I think I must have tested mnet client/server around the wrong way --- diff --git a/mnet/xmlrpc/server.php b/mnet/xmlrpc/server.php index 4b5c3b9498..2658e899f7 100644 --- a/mnet/xmlrpc/server.php +++ b/mnet/xmlrpc/server.php @@ -51,7 +51,7 @@ $MNET_REMOTE_CLIENT = new mnet_remote_client(); try { $plaintextmessage = mnet_server_strip_encryption($HTTP_RAW_POST_DATA); $xmlrpcrequest = mnet_server_strip_signature($plaintextmessage); -catch (Exception $e { +} catch (Exception $e) { exit(mnet_server_fault($e->getCode(), $e->getMessage(), $e->a)); } @@ -74,7 +74,7 @@ if ((($MNET_REMOTE_CLIENT->request_was_encrypted == true) && ($MNET_REMOTE_CLIEN || (($MNET_REMOTE_CLIENT->signatureok == true) && ($MNET_REMOTE_CLIENT->plaintext_is_ok() == true))) { try { $response = mnet_server_dispatch($xmlrpcrequest); - catch (Exception $e) { + } catch (Exception $e) { exit(mnet_server_fault($e->getCode(), $e->getMessage(), $e->a)); } } else {