]> git.mjollnir.org Git - moodle.git/commitdiff
Delete user fails if apostrophe in email address MDL-4762 ; found and solution provid...
authorskodak <skodak>
Wed, 18 Oct 2006 21:46:14 +0000 (21:46 +0000)
committerskodak <skodak>
Wed, 18 Oct 2006 21:46:14 +0000 (21:46 +0000)
admin/user.php

index ae4deb62074ba03b1a8ae2504e824df35a40e2fd..043a928e1c1365f089577f7b00863b08c1075e62 100644 (file)
                 $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();