mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix another XSS
This commit is contained in:
parent
f955f6a685
commit
642e7ce110
1 changed files with 3 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue