From f27c022e5c480535c61e152e3cacc621990509df Mon Sep 17 00:00:00 2001 From: Joby Harding Date: Thu, 20 Aug 2015 10:29:16 +0100 Subject: [PATCH 1/2] MDL-49032 lib/bennu: use HTAB only when folding lines --- 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 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++; } From 2fab7166b5a7e1fb50f187273f9e2ce1157e2676 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 16 Sep 2015 00:44:21 +0200 Subject: [PATCH 2/2] MDL-49032 lib/bennu: update readme to document the change --- lib/bennu/readme_moodle.txt | 1 + 1 file changed, 1 insertion(+) 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)