aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-28 16:41:00 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-28 16:41:00 +0200
commit9a4709e68db5cff184816ed9d01086ba00f62b35 (patch)
tree7757050ca337505b6af2a63ddbb201bbcf2a577b
parentc4f5639cb40ebb7a7442ff259ee0ea4d83a8c8f2 (diff)
downloadnextcloud-server-9a4709e68db5cff184816ed9d01086ba00f62b35.tar.gz
nextcloud-server-9a4709e68db5cff184816ed9d01086ba00f62b35.zip
fix calendar export for Apple iCal - i hate bloody line ends
-rw-r--r--apps/calendar/lib/export.php3
1 files changed, 3 insertions, 0 deletions
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;
}
}