⬆️ Update libraries.

Updating smarty/smarty (v3.1.31 => v3.1.32)
Updating sabre/vobject (4.1.5 => 4.1.6)
This commit is contained in:
Klaus Weidenbach
2018-05-04 22:44:22 +02:00
parent 30d0f9888c
commit dafe0afa65
186 changed files with 7468 additions and 6076 deletions

View File

@@ -246,20 +246,18 @@ abstract class Property extends Node {
$str .= ':' . $this->getRawMimeDirValue();
$out = '';
while (strlen($str) > 0) {
if (strlen($str) > 75) {
$part = mb_strcut($str, 0, 75, 'utf-8');
$out .= $part . "\r\n";
$str = ' ' . substr($str, strlen($part));
} else {
$out .= $str . "\r\n";
$str = '';
break;
}
}
$str = \preg_replace(
'/(
(?:^.)? # 1 additional byte in first line because of missing single space (see next line)
.{1,74} # max 75 bytes per line (1 byte is used for a single space added after every CRLF)
(?![\x80-\xbf]) # prevent splitting multibyte characters
)/x',
"$1\r\n ",
$str
);
return $out;
// remove single space after last CRLF
return \substr($str, 0, -1);
}