From: stronk7 Date: Sat, 8 Sep 2007 22:58:50 +0000 (+0000) Subject: Fix excess of slashing in course names when restoring. MDL-11151 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3ab03633c34841409e204494523766f41bc8fa10;p=moodle.git Fix excess of slashing in course names when restoring. MDL-11151 Merged from MOODLE_18_MERGED --- diff --git a/backup/restore_check.html b/backup/restore_check.html index c5605551be..0e5e6b41fc 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -18,8 +18,8 @@ if ($form1 = data_submitted()) { $currentcourseshortname = $course_header->course_shortname; //"store_ShortName"; - $course_header->course_shortname = $form1->shortname; //"update_ShortName"; - $course_header->course_fullname = $form1->fullname; //"update_FullName"; + $course_header->course_shortname = stripslashes_safe($form1->shortname); //"update_ShortName"; + $course_header->course_fullname = stripslashes_safe($form1->fullname); //"update_FullName"; $form1->startdate = make_timestamp($form1->startyear, $form1->startmonth, $form1->startday); $currentcoursestartdate = $course_header->course_startdate; $coursestartdatedateoffset = $form1->startdate - $currentcoursestartdate;