diff options
author | redmatrix <git@macgirvin.com> | 2016-07-20 18:59:51 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-20 18:59:51 -0700 |
commit | 779885f9afe99980c32d2bf30757cc655e5d9427 (patch) | |
tree | 8c6020af47fd2011ed99848741ac043fc63ce471 /include | |
parent | 3affb2e8172b4cc673aafe9551c21dad6f606d87 (diff) | |
download | volse-hubzilla-779885f9afe99980c32d2bf30757cc655e5d9427.tar.gz volse-hubzilla-779885f9afe99980c32d2bf30757cc655e5d9427.tar.bz2 volse-hubzilla-779885f9afe99980c32d2bf30757cc655e5d9427.zip |
fix vevent multi-line formatting
Diffstat (limited to 'include')
-rw-r--r-- | include/event.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php index a4118ec78..3d650cd14 100644 --- a/include/event.php +++ b/include/event.php @@ -183,7 +183,9 @@ function format_ical_text($s) { require_once('include/bbcode.php'); require_once('include/html2plain.php'); - return(wordwrap(str_replace(array(',',';','\\'),array('\\,','\\;','\\\\'),html2plain(bbcode($s))),72,"\r\n ",true)); + $s = html2plain(bbcode($s)); + $s = str_replace(["\r\n","\n"],["",""],$s); + return(wordwrap(str_replace(['\\',',',';'],['\\\\','\\,','\\;'],$s),72,"\r\n ",true)); } |