Fixed EOL stuff in Piler_Mime_Decode

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-02-25 10:00:11 +01:00
parent 35d3685360
commit c0b1df9bb1

View File

@ -113,7 +113,7 @@ class Piler_Mime_Decode {
if(count($parts) >= 2) {
self::splitMessageRaw($parts[0], $s, $j, $journal);
$i = strpos($parts[1], "\n");
$i = strpos($parts[1], $EOL . $EOL);
$msg = substr($parts[1], $i);
$i = 0;
@ -130,7 +130,7 @@ class Piler_Mime_Decode {
}
public static function removeJournal(&$message, $EOL = '\n') {
public static function removeJournal(&$message, $EOL = "\n") {
$has_journal = 0;
$s = self::remove_LF($message);