mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-22 16:23:18 +02:00
@ -53,7 +53,7 @@ class Piler_Mime_Decode {
|
||||
$start = 0;
|
||||
$res = array();
|
||||
|
||||
$body = self::remove_LF($body);
|
||||
$body = self::remove_CR($body);
|
||||
|
||||
// Extract the mime parts excluding the boundary itself
|
||||
|
||||
@ -96,7 +96,7 @@ class Piler_Mime_Decode {
|
||||
$headers = [];
|
||||
$body = '';
|
||||
|
||||
$message = self::remove_LF($message);
|
||||
$message = self::remove_CR($message);
|
||||
|
||||
// Find an empty line between headers and body, otherwise we got a header-only message
|
||||
|
||||
@ -289,7 +289,7 @@ class Piler_Mime_Decode {
|
||||
}
|
||||
|
||||
|
||||
public static function remove_LF($message = '') {
|
||||
public static function remove_CR($message = '') {
|
||||
return str_replace("\r", "", $message);
|
||||
//return preg_replace("/\r/", "", $message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user