From 930bbeabd4285617c8a360babbffedca3f3d7634 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 28 Jun 2012 19:04:14 +0200 Subject: Calendar Export: replace spaces with dashes in the name of the calendar / event --- apps/calendar/export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/calendar') 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 -- cgit v1.2.3