mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-04-05 14:30:32 +02:00
Fixed EOL stuff in Piler_Mime_Decode
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
35d3685360
commit
c0b1df9bb1
@ -83,7 +83,7 @@ class Piler_Mime_Decode {
|
|||||||
$res[] = substr($body, $start, $p - $start);
|
$res[] = substr($body, $start, $p - $start);
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function splitMessage($message, &$headers, &$body, $EOL = "\n") {
|
public static function splitMessage($message, &$headers, &$body, $EOL = "\n") {
|
||||||
@ -113,7 +113,7 @@ class Piler_Mime_Decode {
|
|||||||
if(count($parts) >= 2) {
|
if(count($parts) >= 2) {
|
||||||
self::splitMessageRaw($parts[0], $s, $j, $journal);
|
self::splitMessageRaw($parts[0], $s, $j, $journal);
|
||||||
|
|
||||||
$i = strpos($parts[1], "\n");
|
$i = strpos($parts[1], $EOL . $EOL);
|
||||||
$msg = substr($parts[1], $i);
|
$msg = substr($parts[1], $i);
|
||||||
|
|
||||||
$i = 0;
|
$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;
|
$has_journal = 0;
|
||||||
|
|
||||||
$s = self::remove_LF($message);
|
$s = self::remove_LF($message);
|
||||||
@ -249,7 +249,7 @@ class Piler_Mime_Decode {
|
|||||||
|
|
||||||
$result[$last_token] .= ' ' . $line_str;
|
$result[$last_token] .= ' ' . $line_str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user