mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 20:10:11 +01:00
Fixed EOL usage in model mail
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
6064659c7d
commit
b547a08208
@ -121,7 +121,7 @@ class ModelMailMail extends Model {
|
|||||||
$s = strstr($hdr, "Subject:");
|
$s = strstr($hdr, "Subject:");
|
||||||
if($s) {
|
if($s) {
|
||||||
$l1 = strlen($s);
|
$l1 = strlen($s);
|
||||||
$l2 = strlen(strstr($s, "\n"));
|
$l2 = strlen(strstr($s, EOL));
|
||||||
if($l1 > $l2 + 10) {
|
if($l1 > $l2 + 10) {
|
||||||
$subject = substr($s, 0, $l1 - $l2) . EOL;
|
$subject = substr($s, 0, $l1 - $l2) . EOL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user