From: skodak Date: Sat, 20 Oct 2007 19:31:51 +0000 (+0000) Subject: MDL-11857 missing addslashes on idnumber field during backup restore X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ffb2a56ff134d22ac26af8e052c3b59b80a842e4;p=moodle.git MDL-11857 missing addslashes on idnumber field during backup restore --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 6351186a92..f41434de2f 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -2203,7 +2203,7 @@ //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