Skip to content

Commit

Permalink
fix another XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Ehrke committed Jun 9, 2012
1 parent f955f6a commit 642e7ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/calendar/templates/part.import.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<?php
$calendar_options = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser());
$calendar_options[] = array('id'=>'newcal', 'displayname'=>$l->t('create a new calendar'));
for($i = 0;$i<count($calendar_options);$i++){
$calendar_options[$i]['displayname'] = htmlspecialchars($calendar_options[$i]['displayname']);
}
echo OCP\html_select_options($calendar_options, $calendar_options[0]['id'], array('value'=>'id', 'label'=>'displayname'));
?>
</select>
Expand Down

0 comments on commit 642e7ce

Please sign in to comment.