From 124cf64d4fc6a277838de491bc6f5bfd443e6019 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 29 Dec 2013 15:06:18 +0100 Subject: try to fix ical, but still broken --- includes/pages/user_ical.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/pages/user_ical.php b/includes/pages/user_ical.php index 34f01942..384979d7 100644 --- a/includes/pages/user_ical.php +++ b/includes/pages/user_ical.php @@ -38,7 +38,8 @@ function user_ical() { $html .= "LOCATION:" . $shift['room_name'] . "\r\n"; $html .= "END:VEVENT\r\n"; } - $html .= "END:VCALENDAR"; + $html .= "END:VCALENDAR\r\n"; + $html = trim($html, "\x0A"); header("Content-Length: " . strlen($html)); echo $html; die(); -- cgit v1.2.3-70-g09d2