]> git.mjollnir.org Git - moodle.git/commitdiff
Cleaning up, completing, bugfixing, adding features to iCalendar export of
authormartinlanghoff <martinlanghoff>
Thu, 23 Nov 2006 20:30:57 +0000 (20:30 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 23 Nov 2006 20:30:57 +0000 (20:30 +0000)
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 <andrew.walbran@catalyst.net.nz>

lib/bennu/iCalendar_rfc2445.php

index a746925e56203abe5af50d6a4e351cc4398441fe..efb6e4bdfcbb4b1d9d9697c3d4d4e8688d334aea 100644 (file)
@@ -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;