Fixed EOL usage in model mail

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2023-06-29 16:52:03 +02:00
parent 30eab88933
commit 4ec8eceb20

View File

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