From f3b205b8003b4dded51e8d30ac0a9730da05cdcc Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 23 Nov 2006 20:30:57 +0000 Subject: [PATCH] Cleaning up, completing, bugfixing, adding features to iCalendar export of Moodle calendar. * Adding strings * Adding more information to iCalendar output * Making iCalendar output compatible with a wider range of calender software * Removing (non-functional) advanced options for now, and other superfluous code * Paying attention to all / course events option * Adding authentication token system to allow subscription * Adding JavaScript to generate URL for subscription * Adding links from calendar page Author: Andrew Walbran --- lib/bennu/iCalendar_rfc2445.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bennu/iCalendar_rfc2445.php b/lib/bennu/iCalendar_rfc2445.php index a746925e56..efb6e4bdfc 100644 --- a/lib/bennu/iCalendar_rfc2445.php +++ b/lib/bennu/iCalendar_rfc2445.php @@ -761,7 +761,7 @@ function rfc2445_do_value_formatting($value, $type) { break; case RFC2445_TYPE_TEXT: // Escape entities - $value = strtr($value, array("\n" => '\\n', '\\' => '\\\\', ',' => '\\,', ';' => '\\;')); + $value = strtr($value, array("\r\n" => '\\n', "\n" => '\\n', '\\' => '\\\\', ',' => '\\,', ';' => '\\;')); break; } return $value; -- 2.39.5