mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 08:12:27 +01:00 
			
		
		
		
	Fixed EOL stuff in Piler_Mime_Decode
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		| @@ -83,7 +83,7 @@ class Piler_Mime_Decode { | ||||
|       $res[] = substr($body, $start, $p - $start); | ||||
|  | ||||
|       return $res; | ||||
|    }    | ||||
|    } | ||||
|  | ||||
|  | ||||
|    public static function splitMessage($message, &$headers, &$body, $EOL = "\n") { | ||||
| @@ -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); | ||||
| @@ -249,7 +249,7 @@ class Piler_Mime_Decode { | ||||
|  | ||||
|                $result[$last_token] .= ' ' . $line_str; | ||||
|             } | ||||
|          }  | ||||
|          } | ||||
|  | ||||
|       } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user