MDL-49032 lib/bennu: use HTAB only when folding lines
authorJoby Harding <joby@77gears.com>
Thu, 20 Aug 2015 09:29:16 +0000 (10:29 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 15 Sep 2015 22:45:51 +0000 (00:45 +0200)
lib/bennu/iCalendar_rfc2445.php

index 53fdd8a..8392eed 100644 (file)
@@ -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++;
     }