From b547a08208fc74f21c1226719687d5e3de9393e8 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Thu, 29 Jun 2023 16:52:03 +0200 Subject: [PATCH] Fixed EOL usage in model mail Signed-off-by: Janos SUTO --- webui/model/mail/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/mail/mail.php b/webui/model/mail/mail.php index 8271ec65..f5893429 100644 --- a/webui/model/mail/mail.php +++ b/webui/model/mail/mail.php @@ -121,7 +121,7 @@ class ModelMailMail extends Model { $s = strstr($hdr, "Subject:"); if($s) { $l1 = strlen($s); - $l2 = strlen(strstr($s, "\n")); + $l2 = strlen(strstr($s, EOL)); if($l1 > $l2 + 10) { $subject = substr($s, 0, $l1 - $l2) . EOL; }