Skip to content

Commit

Permalink
Merge pull request PHPMailer#393 from sveneld/patch-1
Browse files Browse the repository at this point in the history
Fix concatenation of headers for Dkim
  • Loading branch information
Synchro committed Apr 4, 2015
2 parents 580e44d + 653d638 commit efd1558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3411,8 +3411,8 @@ public function DKIM_Add($headers_line, $subject, $body)
$to_header = $header;
$current = 'to_header';
} else {
if ($current && strpos($header, ' =?') === 0) {
$current .= $header;
if (!empty($$current) && strpos($header, ' =?') === 0) {
$$current .= $header;
} else {
$current = '';
}
Expand Down

0 comments on commit efd1558

Please sign in to comment.