From 96f59e61b80e367c26547ca043de0e4e4b9a73f9 Mon Sep 17 00:00:00 2001 From: Olivier BOUMATI Date: Tue, 11 Sep 2018 09:43:38 +0200 Subject: [PATCH] Update monitor_tools.inc.php Preserve body structure in send_notification_email --- server/lib/classes/monitor_tools.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php index 9f7580fee1..9be10e152b 100644 --- a/server/lib/classes/monitor_tools.inc.php +++ b/server/lib/classes/monitor_tools.inc.php @@ -776,7 +776,8 @@ class monitor_tools { $mailSubject = ''; $inHeader = true; for($l = 0; $l < count($lines); $l++) { - if(trim($lines[$l]) == '') { + /* Trim only in headers */ + if($inHeader && trim($lines[$l]) == '') { $inHeader = false; continue; } -- GitLab