From 2ee1811b85541eb3cdd6e5a67f51457d6f99e350 Mon Sep 17 00:00:00 2001 From: hadi Date: Fri, 23 Jun 2023 15:07:57 +0200 Subject: [PATCH] Fix reply as forced HTML break plain text pseudo tags --- mail/inc/class.mail_compose.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 9aa8c447bd..7f82391be8 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -1541,6 +1541,10 @@ class mail_compose case 'reply': case 'reply_all': $content = $this->getReplyData($from == 'reply' ? 'single' : 'all', $icServer, $folder, $msgUID, $part_id); + if ($content['mimeType'] === 'plain' && $GLOBALS['egw_info']['user']['preferences']['mail']['replyOptions'] === 'html') + { + $content['body'] = htmlspecialchars($content['body']); + } $content['processedmail_id'] = $mail_id; $content['mode'] = 'reply'; $_focusElement = 'body';