diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-01-15 00:45:27 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-01-15 00:45:27 +0100 |
commit | 43f7b2fd2d874cbd15a5b181782096b364fe0993 (patch) | |
tree | ff3f9e8b88adc25c146be627e3f5834cad47a5da /apps/calendar | |
parent | fed7eef4f3d35d293518f3dc6435fe12eb25983b (diff) | |
download | nextcloud-server-43f7b2fd2d874cbd15a5b181782096b364fe0993.tar.gz nextcloud-server-43f7b2fd2d874cbd15a5b181782096b364fe0993.zip |
fix newline problem in calendar
Diffstat (limited to 'apps/calendar')
-rw-r--r-- | apps/calendar/export.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php index ce1a4aa046f..ce36116c4cb 100644 --- a/apps/calendar/export.php +++ b/apps/calendar/export.php @@ -1,6 +1,6 @@ <?php /** - * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de> + * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. @@ -11,13 +11,15 @@ OC_Util::checkLoggedIn(); OC_Util::checkAppEnabled('calendar'); $cal = isset($_GET['calid']) ? $_GET['calid'] : NULL; $event = isset($_GET['eventid']) ? $_GET['eventid'] : NULL; +$nl = ' +'; if(isset($cal)){ $calendar = OC_Calendar_App::getCalendar($cal); $calobjects = OC_Calendar_Object::all($cal); header('Content-Type: text/Calendar'); header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics'); foreach($calobjects as $calobject){ - echo $calobject['calendardata'] . '\n'; + echo $calobject['calendardata'] . $nl; } }elseif(isset($event)){ $data = OC_Calendar_App::getEventObject($_GET['eventid']); |