Skip to content

Commit

Permalink
"MDL-10633, fix dobule quote in calendar, merged from MOODLE_18_STABLE"
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Jun 27, 2008
1 parent fa2ff55 commit 81f64bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions calendar/event.php
Expand Up @@ -130,6 +130,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;
Expand Down

0 comments on commit 81f64bb

Please sign in to comment.