Skip to content

Commit

Permalink
Merge pull request #191 from catalyst/190-MOODLE_403_STABLE-ics-output
Browse files Browse the repository at this point in the history
Issue #190: Fix long links displaying correctly in invite.ics
  • Loading branch information
gbarat87 authored Dec 17, 2024
2 parents cacca1a + 85fe70e commit 464a772
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 464a772

Please sign in to comment.