From: dongsheng Date: Fri, 27 Jun 2008 03:12:56 +0000 (+0000) Subject: "MDL-10633, fix dobule quote in calendar, merged from MOODLE_19_STABLE" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=55924e7c1880f3ca4eaf55da361bdcd60740225a;p=moodle.git "MDL-10633, fix dobule quote in calendar, merged from MOODLE_19_STABLE" --- diff --git a/calendar/event.php b/calendar/event.php index a49dd93af5..b2ce6318ca 100644 --- a/calendar/event.php +++ b/calendar/event.php @@ -130,6 +130,10 @@ $form->name = clean_param(strip_tags($form->name,''), PARAM_CLEAN); + // To avoid double slashes + $form->name = stripslashes($form->name); + $form->description = stripslashes($form->description); + $form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin); if($form->duration == 1) { $form->timeduration = make_timestamp($form->endyr, $form->endmon, $form->endday, $form->endhr, $form->endmin) - $form->timestart;