@@ 125-133 (lines=9) @@ | ||
122 | // a content line, lines longer than 75 octets SHOULD be folded |
|
123 | // according to the folding procedure described above. |
|
124 | ||
125 | if (($length = mb_strlen($icalProperty)) > 75) { |
|
126 | $property = mb_substr($icalProperty, 0, 75); |
|
127 | $pos = 75; |
|
128 | while ($pos < $length) { |
|
129 | $property .= "\r\n " . mb_substr($icalProperty, $pos, 75); |
|
130 | $pos += 75; |
|
131 | } |
|
132 | $icalProperty = $property; |
|
133 | } |
|
134 | ||
135 | return $icalProperty; |
|
136 | } |
|
@@ 529-537 (lines=9) @@ | ||
526 | // according to the unfolding procedure described above. When generating |
|
527 | // a content line, lines longer than 75 octets SHOULD be folded |
|
528 | // according to the folding procedure described above. |
|
529 | if (($length = mb_strlen($icalProperty)) > 75) { |
|
530 | $property = mb_substr($icalProperty, 0, 75); |
|
531 | $pos = 75; |
|
532 | while ($pos < $length) { |
|
533 | $property .= "\n " . mb_substr($icalProperty, $pos, 75); |
|
534 | $pos += 75; |
|
535 | } |
|
536 | $icalProperty = $property; |
|
537 | } |
|
538 | $ical .= $icalProperty . "\r\n"; |
|
539 | } |
|
540 | } |