]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix calendar export for Apple iCal - i hate bloody line ends
authorGeorg Ehrke <dev@georgswebsite.de>
Thu, 28 Jun 2012 14:41:00 +0000 (16:41 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Thu, 28 Jun 2012 14:41:00 +0000 (16:41 +0200)
apps/calendar/lib/export.php

index 6f478236ded4668be56aaa654306cb03ce7f325b..7c98d94fcc6885116162789a239e1f8a80819846 100644 (file)
@@ -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;
        }
 }