From: Georg Ehrke Date: Sat, 14 Jan 2012 23:45:27 +0000 (+0100) Subject: fix newline problem in calendar X-Git-Tag: v3.0~40^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43f7b2fd2d874cbd15a5b181782096b364fe0993;p=nextcloud-server.git fix newline problem in calendar --- 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 @@ + * Copyright (c) 2012 Georg Ehrke * 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']);