]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11857 missing addslashes on idnumber field during backup restore
authorskodak <skodak>
Sat, 20 Oct 2007 19:31:51 +0000 (19:31 +0000)
committerskodak <skodak>
Sat, 20 Oct 2007 19:31:51 +0000 (19:31 +0000)
backup/restorelib.php

index 6351186a926106dc1f6eb7cfb3ba919efbc75bae..f41434de2f82a30b22f95aabb4115d559c5f5a04 100644 (file)
                     //Unset the id because it's going to be inserted with a new one
                     unset ($user->id);
                     // relink the descriptions
-                    $user->description = backup_todb($user->description);
+                    $user->description = stripslashes(backup_todb($user->description));
 
                     //We need to analyse the AUTH field to recode it:
                     //   - if the field isn't set, we are in a pre 1.4 backup and we'll