mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-9288 : An additional addslashes() that was in Petr's patch but didn't get committed. Tested and required.
This commit is contained in:
parent
620cd35d39
commit
2f33c23492
@ -285,7 +285,7 @@ class auth_plugin_mnet extends auth_plugin_base {
|
|||||||
$firsttime = false;
|
$firsttime = false;
|
||||||
|
|
||||||
// get the local record for the remote user
|
// 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
|
// add the remote user to the database if necessary, and if allowed
|
||||||
// TODO: refactor into a separate function
|
// TODO: refactor into a separate function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user