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; }