Skip to content

Commit

Permalink
bugfix: use chunk_split
Browse files Browse the repository at this point in the history
  • Loading branch information
djarran committed Dec 16, 2024
1 parent cacca1a commit 26e74b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3147,9 +3147,8 @@ function facetoface_ical_escape($text, $converthtml=false) {
$text
);

// Text should be wordwrapped at 75 octets, and there should be one whitespace after the newline that does the wrapping.
$text = wordwrap($text, 75, " \n ", true);

// Text should be wrapped at 75 octets, and there should be one whitespace after the newline that does the wrapping.
$text = rtrim(chunk_split($text, 75, "\n "), "\n ");
return $text;
}

Expand Down

0 comments on commit 26e74b2

Please sign in to comment.