]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-10633, fix dobule quote in calendar, merged from MOODLE_19_STABLE"
authordongsheng <dongsheng>
Fri, 27 Jun 2008 03:12:56 +0000 (03:12 +0000)
committerdongsheng <dongsheng>
Fri, 27 Jun 2008 03:12:56 +0000 (03:12 +0000)
calendar/event.php

index a49dd93af5e97e7303a461aa0d3ab8ad18eb94b9..b2ce6318cae53cff453ce7b3528deab45e7dc6f2 100644 (file)
 
                 $form->name = clean_param(strip_tags($form->name,'<lang><span>'), 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;