Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Commit

Permalink
Merge pull request #21 from ickbinhier/patch-1
Browse files Browse the repository at this point in the history
change $arHeader['Content-type'] to array
  • Loading branch information
crazy-max authored Mar 1, 2017
2 parents 90afe17 + 27f1590 commit 282856b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cws/MailBounceHandler/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ private static function parseHeader($arHeader)

if (isset($arHeader['Content-type'])) {
$ar_mr = explode(';', $arHeader['Content-type']);
$arHeader['Content-type'] = '';
$arHeader['Content-type'] = array();
$arHeader['Content-type']['type'] = strtolower($ar_mr[0]);
foreach ($ar_mr as $mr) {
if (preg_match('#([^=.]*?)=(.*)#i', $mr, $matches)) {
Expand Down

0 comments on commit 282856b

Please sign in to comment.