MDL-49032 lib/bennu: use HTAB only when folding lines

This commit is contained in:
Joby Harding 2015-08-20 10:29:16 +01:00 committed by Eloy Lafuente (stronk7)
parent a9285cd5d4
commit f66cc72387

View file

@ -79,7 +79,7 @@ function rfc2445_fold($string) {
/* Add the portion to the return value, terminating with CRLF.HTAB /* 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 As per RFC 2445, CRLF.HTAB will be replaced by the processor of the
data */ data */
$retval .= $section.RFC2445_CRLF.RFC2445_WSP; $retval .= $section . RFC2445_CRLF . substr(RFC2445_WSP, 0, 1);
$i++; $i++;
} }