Calendar Export: replace spaces with dashes in the name of the calendar / event

remotes/origin/stable45
Georg Ehrke 14 years ago
parent 9dd7ca2667
commit 930bbeabd4
  1. 4
      apps/calendar/export.php

@ -16,7 +16,7 @@ if(isset($cal)){
exit;
}
header('Content-Type: text/Calendar');
header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics');
header('Content-Disposition: inline; filename=' . str_replace(' ', '-', $calendar['displayname']) . '.ics');
echo OC_Calendar_Export::export($cal, OC_Calendar_Export::CALENDAR);
}elseif(isset($event)){
$data = OC_Calendar_App::getEventObject($_GET['eventid'], true);
@ -25,6 +25,6 @@ if(isset($cal)){
exit;
}
header('Content-Type: text/Calendar');
header('Content-Disposition: inline; filename=' . $data['summary'] . '.ics');
header('Content-Disposition: inline; filename=' . str_replace(' ', '-', $data['summary']) . '.ics');
echo OC_Calendar_Export::export($event, OC_Calendar_Export::EVENT);
}
Loading…
Cancel
Save