From 4ec8eceb2058e15c161fc79a15ff3d9742b787b7 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; }