summaryrefslogtreecommitdiffstats
path: root/apps/calendar
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-28 19:04:14 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-28 19:04:14 +0200
commit930bbeabd4285617c8a360babbffedca3f3d7634 (patch)
treeb085ee0906b09cbcbb1bd9ddb24ee5a5a34864f7 /apps/calendar
parent9dd7ca26671d2c6640210e59071135e8f69cca7f (diff)
downloadnextcloud-server-930bbeabd4285617c8a360babbffedca3f3d7634.tar.gz
nextcloud-server-930bbeabd4285617c8a360babbffedca3f3d7634.zip
Calendar Export: replace spaces with dashes in the name of the calendar / event
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/export.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php
index 5ed7092cbfe..1374c49cc0d 100644
--- a/apps/calendar/export.php
+++ b/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);
} \ No newline at end of file