Skip to content

Commit 9969080

Browse files
committed
header names should be lowercase for comparison
1 parent 333d13a commit 9969080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/monitor_tools.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,11 @@ public function send_notification_email($template, $placeholders, $recipients) {
845845
$mailSubject = trim($parts[1]);
846846
continue;
847847
}
848-
if(strtolower($parts[0]) == 'From') {
848+
if(strtolower($parts[0]) == 'from') {
849849
$mailFrom = trim($parts[1]);
850850
continue;
851851
}
852-
if(strtolower($parts[0]) == 'Cc') {
852+
if(strtolower($parts[0]) == 'cc') {
853853
if (! in_array(trim($parts[1]), $recipients)) {
854854
$recipients[] = trim($parts[1]);
855855
}

0 commit comments

Comments
 (0)