fix mime parser bug

This commit is contained in:
Andreas Schamberger 2012-01-03 12:38:58 +01:00
parent f0d373f1b8
commit e151d06371

View File

@ -32,6 +32,8 @@ class Parser
$boundary = null;
$start = null;
$multipart = new MultiPart();
$hitFirstBoundary = false;
$inHeader = true;
// add given headers, e.g. coming from HTTP headers
if (count($headers) > 0) {
foreach ($headers as $name => $value) {
@ -43,9 +45,8 @@ class Parser
$multipart->setHeader($name, $value);
}
}
$inHeader = false;
}
$hitFirstBoundary = false;
$inHeader = true;
$content = '';
$currentPart = $multipart;
$lines = preg_split("/\r\n|\n/", $mimeMessage);