From f66cc72387ff561c8e0b7e512fe5da130d8a8947 Mon Sep 17 00:00:00 2001 From: Joby Harding Date: Thu, 20 Aug 2015 10:29:16 +0100 Subject: [PATCH] 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++; }