Skip to content

Commit

Permalink
DKIM replace boundary tab with witespace
Browse files Browse the repository at this point in the history
The boundary for DKIM is not correct, at the moment it´s a tab it should be a witespace.
This fixes PHPMailer#234 and PHPMailer#1655 .
  • Loading branch information
arnebr committed Apr 26, 2019
1 parent 0dc4706 commit 15ac00b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4304,7 +4304,8 @@ public function DKIM_BodyC($body)
}
// Normalize line endings to CRLF
$body = static::normalizeBreaks($body, "\r\n");

// Remove TABS from boundary
$body=preg_replace('/\t+boundary/', ' boundary', $body);
//Reduce multiple trailing line breaks to a single one
return rtrim($body, "\r\n") . "\r\n";
}
Expand Down

0 comments on commit 15ac00b

Please sign in to comment.