fix mime parser bug
This commit is contained in:
parent
f0d373f1b8
commit
e151d06371
|
@ -32,6 +32,8 @@ class Parser
|
||||||
$boundary = null;
|
$boundary = null;
|
||||||
$start = null;
|
$start = null;
|
||||||
$multipart = new MultiPart();
|
$multipart = new MultiPart();
|
||||||
|
$hitFirstBoundary = false;
|
||||||
|
$inHeader = true;
|
||||||
// add given headers, e.g. coming from HTTP headers
|
// add given headers, e.g. coming from HTTP headers
|
||||||
if (count($headers) > 0) {
|
if (count($headers) > 0) {
|
||||||
foreach ($headers as $name => $value) {
|
foreach ($headers as $name => $value) {
|
||||||
|
@ -43,9 +45,8 @@ class Parser
|
||||||
$multipart->setHeader($name, $value);
|
$multipart->setHeader($name, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$inHeader = false;
|
||||||
}
|
}
|
||||||
$hitFirstBoundary = false;
|
|
||||||
$inHeader = true;
|
|
||||||
$content = '';
|
$content = '';
|
||||||
$currentPart = $multipart;
|
$currentPart = $multipart;
|
||||||
$lines = preg_split("/\r\n|\n/", $mimeMessage);
|
$lines = preg_split("/\r\n|\n/", $mimeMessage);
|
||||||
|
|
Loading…
Reference in New Issue