Delete user fails if apostrophe in email address MDL-4762 ; found and solution provided by Inaki Arenaza - merged from MOODLE_17_STABLE

This commit is contained in:
skodak 2006-10-18 21:46:14 +00:00
parent e38204d175
commit 2b82319d94

View File

@ -169,7 +169,7 @@
$updateuser = new object();
$updateuser->id = $user->id;
$updateuser->deleted = 1;
$updateuser->username = "$user->email.".time(); // Remember it just in case
$updateuser->username = addslashes("$user->email.".time()); // Remember it just in case
$updateuser->email = ''; // Clear this field to free it up
$updateuser->idnumber = ''; // Clear this field to free it up
$updateuser->timemodified = time();