X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FICalendar.php;h=8081b335ab4d58603538ae039c46f76211e449d9;hb=cced0f6e4c2e244beca8ac97fc14e3806167c85e;hp=9774df8d5a937ba85f21c76d932c6e4d7a59a5a0;hpb=4e2d3adb5cbcb9f48e4638e4e755f95faffc3d99;p=civicrm-core.git diff --git a/CRM/Utils/ICalendar.php b/CRM/Utils/ICalendar.php index 9774df8d5a..8081b335ab 100644 --- a/CRM/Utils/ICalendar.php +++ b/CRM/Utils/ICalendar.php @@ -52,7 +52,7 @@ class CRM_Utils_ICalendar { $text = str_replace("\\", "\\\\", $text); $text = str_replace(',', '\,', $text); $text = str_replace(';', '\;', $text); - $text = str_replace(array("\r\n", "\n", "\r"), "\\n ", $text); + $text = str_replace(["\r\n", "\n", "\r"], "\\n ", $text); $text = implode("\n ", str_split($text, 50)); return $text; }