diff --git a/lib/bennu/iCalendar_rfc2445.php b/lib/bennu/iCalendar_rfc2445.php index 53fdd8adf53..8392eed9af0 100644 --- a/lib/bennu/iCalendar_rfc2445.php +++ b/lib/bennu/iCalendar_rfc2445.php @@ -79,7 +79,7 @@ function rfc2445_fold($string) { /* Add the portion to the return value, terminating with CRLF.HTAB As per RFC 2445, CRLF.HTAB will be replaced by the processor of the data */ - $retval .= $section.RFC2445_CRLF.RFC2445_WSP; + $retval .= $section . RFC2445_CRLF . substr(RFC2445_WSP, 0, 1); $i++; } diff --git a/lib/bennu/readme_moodle.txt b/lib/bennu/readme_moodle.txt index c27a1720e0b..f623332fb87 100644 --- a/lib/bennu/readme_moodle.txt +++ b/lib/bennu/readme_moodle.txt @@ -7,3 +7,4 @@ modifications: 4/ updated rfc2445_is_valid_value() to accept single part rrule as a valid value (16 Jun 2014) 5/ updated DTEND;TZID and DTSTAR;TZID values to support quotations (7 Nov 2014) 6/ added calendar_normalize_tz function to convert region timezone to php supported timezone (7 Nov 2014) +7/ MDL-49032: fixed rfc2445_fold() to fix incorrect RFC2445_WSP definition (16 Sep 2015)