From 70d571f8bfb1a8595f369526a3091d54acf323a2 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 2 Dec 2022 15:24:32 +0100 Subject: [PATCH] converting plain-text mail to html mistakes angle brackets for tags --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index a7ce875b71..00048bc728 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -660,7 +660,7 @@ class mail_compose $isFirstLoad = "switchedplaintohtml"; //error_log(__METHOD__.__LINE__.$content['mail_plaintext']); $suppressSigOnTop = true; - $content['mail_plaintext'] = str_replace(array("\r\n","\n","\r"),array("
","
","
"),$content['mail_plaintext']); + $content['mail_plaintext'] = str_replace(['<',"\r\n","\n","\r"], ['<',"
","
","
"], $content['mail_plaintext']); //$this->replaceEmailAdresses($content['mail_plaintext']); $content['body'] = $content['mail_plaintext']; unset($content['mail_plaintext']);