From dbca4e44ca36f528a71fb8a33e5db9aa29c8faf1 Mon Sep 17 00:00:00 2001 From: peterbulmer Date: Mon, 11 Aug 2008 04:48:00 +0000 Subject: [PATCH] MDL-15933 Require jump destination MNET peer to be non-deleted. Also require landing source MNET peer to be non-deleted. --- auth/mnet/auth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 5859c07f42..159b702e47 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -241,7 +241,7 @@ class auth_plugin_mnet extends auth_plugin_base { require_once $CFG->dirroot . '/mnet/xmlrpc/client.php'; // verify the remote host is configured locally before attempting RPC call - if (! $remotehost = $DB->get_record('mnet_host', array('wwwroot'=>$remotewwwroot))) { + if (! $remotehost = $DB->get_record('mnet_host', array('wwwroot' => $remotewwwroot, 'deleted' => 0))) { print_error('notpermittedtoland', 'mnet'); } @@ -1302,9 +1302,12 @@ class auth_plugin_mnet extends auth_plugin_base { svc.apiversion, h2s.id as h2s_id FROM + {mnet_host} h, {mnet_service} svc, {mnet_host2service} h2s WHERE + h.deleted = '0' AND + h.id = h2s.hostid AND h2s.hostid = ? AND h2s.serviceid = svc.id AND svc.name = ? AND -- 2.39.5