Permalink
Browse files

MDL-21769 fixed input validation

  • Loading branch information...
1 parent e20b7ee commit f7429974b2b8fb7e1bff2f910affd84b2617651e @skodak skodak committed Mar 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 calendar/event.php
View
4 calendar/event.php
@@ -334,9 +334,9 @@
case 'edit':
if(empty($form)) {
- $form->name = $event->name;
+ $form->name = clean_text($event->name);
$form->courseid = $event->courseid; // Not to update, but for date validation
- $form->description = $event->description;
+ $form->description = clean_text($event->description);
$form->timestart = $event->timestart;
$form->timeduration = $event->timeduration;
$form->id = $event->id;

0 comments on commit f742997

Please sign in to comment.