From 2f33c23492e29acf2f28e8018986a736ffdb6bb2 Mon Sep 17 00:00:00 2001 From: donal72 Date: Fri, 3 Aug 2007 11:16:22 +0000 Subject: [PATCH] MDL-9288 : An additional addslashes() that was in Petr's patch but didn't get committed. Tested and required. --- auth/mnet/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index c01e46ab672..2215443cf98 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -285,7 +285,7 @@ class auth_plugin_mnet extends auth_plugin_base { $firsttime = false; // get the local record for the remote user - $localuser = get_record('user', 'username', $remoteuser->username, 'mnethostid', $remotehost->id); + $localuser = get_record('user', 'username', addslashes($remoteuser->username), 'mnethostid', $remotehost->id); // add the remote user to the database if necessary, and if allowed // TODO: refactor into a separate function