"MDL-10633, fix dobule quote in calendar"

This commit is contained in:
dongsheng
2008-06-27 03:09:59 +00:00
parent 3580b97516
commit 020ce4787f
+5 -1
View File
@@ -125,6 +125,10 @@
$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;
@@ -158,7 +162,7 @@
'timestart = '.$timestartoffset.','.
'timeduration = '.$form->timeduration.','.
'timemodified = '.time().' WHERE repeatid = '.$event->repeatid);
/// Log the event update.
$form->name = stripslashes($form->name); //To avoid double-slashes
add_to_log($form->courseid, 'calendar', 'edit all', 'event.php?action=edit&amp;id='.$form->id, $form->name);