Skip to content

Commit

Permalink
Delete user fails if apostrophe in email address MDL-4762 ; found and…
Browse files Browse the repository at this point in the history
… solution provided by Inaki Arenaza - merged from MOODLE_17_STABLE
  • Loading branch information
skodak committed Oct 18, 2006
1 parent e38204d commit 2b82319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2b82319

Please sign in to comment.