Skip to content

Commit 96f59e6

Browse files
author
Olivier BOUMATI
committed
Update monitor_tools.inc.php
Preserve body structure in send_notification_email
1 parent 3d245ca commit 96f59e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/lib/classes/monitor_tools.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,8 @@ public function send_notification_email($template, $placeholders, $recipients) {
776776
$mailSubject = '';
777777
$inHeader = true;
778778
for($l = 0; $l < count($lines); $l++) {
779-
if(trim($lines[$l]) == '') {
779+
/* Trim only in headers */
780+
if($inHeader && trim($lines[$l]) == '') {
780781
$inHeader = false;
781782
continue;
782783
}

0 commit comments

Comments
 (0)