Skip to content

Commit

Permalink
MDL-21769 fixed input validation
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 7, 2010
1 parent 9770907 commit 8e37137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/event.php
Expand Up @@ -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;
Expand Down

0 comments on commit 8e37137

Please sign in to comment.