From: martinlanghoff Date: Thu, 23 Nov 2006 20:30:57 +0000 (+0000) Subject: Cleaning up, completing, bugfixing, adding features to iCalendar export of X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f3b205b8003b4dded51e8d30ac0a9730da05cdcc;p=moodle.git 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 --- 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;