Skip to content

Commit

Permalink
Patch message class
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Feb 9, 2018
1 parent 7fa9761 commit 674e501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public static function parseMessageParts($parts, $encoding = null)
$type = null;
$basename = null;
$headersAry = [];
if (strpos($part, "\r\n\r\n") !== false) {
if ((strpos($part, "\r\n\r\n") !== false) && (substr($part, 0, 1) != '<')) {
$headers = substr($part, 0, strpos($part, "\r\n\r\n"));
$headers = explode("\r\n", $headers);
$headersAry = [];
Expand Down

0 comments on commit 674e501

Please sign in to comment.