projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ce6701
)
dev/core#1541 Fix ICalendar random invalid utf8
author
Mathieu Lutfy
<mathieu@symbiotic.coop>
Mon, 20 Jun 2022 15:35:18 +0000
(11:35 -0400)
committer
Mathieu Lutfy
<mathieu@bidon.ca>
Mon, 20 Jun 2022 15:35:18 +0000
(11:35 -0400)
CRM/Utils/ICalendar.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/ICalendar.php
b/CRM/Utils/ICalendar.php
index 7d77ef07a16c8704b9285c1182676ddf7a18824d..b23f24f3c11d61ebf5cac9e7472b3634bcc16ced 100644
(file)
--- a/
CRM/Utils/ICalendar.php
+++ b/
CRM/Utils/ICalendar.php
@@
-38,7
+38,7
@@
class CRM_Utils_ICalendar {
$text = str_replace(',', '\,', $text);
$text = str_replace(';', '\;', $text);
$text = str_replace(["\r\n", "\n", "\r"], "\\n ", $text);
- $text = implode("\n ", str_split($text, 50));
+ $text = implode("\n ",
mb_
str_split($text, 50));
return $text;
}