diff options
author | Mario <mario@mariovavti.com> | 2020-10-11 10:50:03 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-10-11 10:50:03 +0000 |
commit | 4a671fe634a4a8463703dd661a238f5545f5a5e4 (patch) | |
tree | 9e420db7a97789d5545222d12408bef63a43b7f6 /Zotlabs | |
parent | ed845d93bc7ac5f46ccb1ea95d53bc5e5f2756bd (diff) | |
download | volse-hubzilla-4a671fe634a4a8463703dd661a238f5545f5a5e4.tar.gz volse-hubzilla-4a671fe634a4a8463703dd661a238f5545f5a5e4.tar.bz2 volse-hubzilla-4a671fe634a4a8463703dd661a238f5545f5a5e4.zip |
replace linebreaks with spaces
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 03a824b9b..fad249e47 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -859,7 +859,7 @@ class Enotify { 'b64mid' => (($item['mid']) ? 'b64.' . base64url_encode($item['mid']) : ''), //'b64mid' => ((in_array($item['verb'], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) ? 'b64.' . base64url_encode($item['thr_parent']) : 'b64.' . base64url_encode($item['mid'])), 'thread_top' => (($item['item_thread_top']) ? true : false), - 'message' => bbcode(escape_tags($itemem_text)), + 'message' => bbcode(escape_tags(str_replace(["\r\n", "\r", "\n"], ' ', $itemem_text))), 'body' => htmlentities(html2plain(bbcode($item['body']), 75, true), ENT_COMPAT, 'UTF-8', false), // these are for the superblock addon 'hash' => $item[$who]['xchan_hash'], |