From 9a4709e68db5cff184816ed9d01086ba00f62b35 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 28 Jun 2012 16:41:00 +0200 Subject: [PATCH] fix calendar export for Apple iCal - i hate bloody line ends --- apps/calendar/lib/export.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/calendar/lib/export.php b/apps/calendar/lib/export.php index 6f478236ded..7c98d94fcc6 100644 --- a/apps/calendar/lib/export.php +++ b/apps/calendar/lib/export.php @@ -49,6 +49,9 @@ class OC_Calendar_Export{ $return .= $object->VEVENT->serialize(); } $return .= "END:VCALENDAR"; + $return = str_replace("\r\n", "\n", $return); + $return = str_replace("\r", "\n", $return); + $return = str_replace("\n", "\r\n", $return); return $return; } } -- 2.39.5