Skip to content

Commit

Permalink
Standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Oct 10, 2019
1 parent aa07c8f commit 7153482
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4594,9 +4594,9 @@ public function DKIM_Add($headers_line, $subject, $body)
foreach ($this->CustomHeader as $customHeader) {
if ($customHeader[0] === $header['label']) {
$headersToSignKeys[] = $header['label'];
$headersToSign[] = $header['label'].': '.$header['value'];
$headersToSign[] = $header['label'] . ': ' . $header['value'];
if ($this->DKIM_copyHeaderFields) {
$copiedHeaders[] = $header['label'].':'.
$copiedHeaders[] = $header['label'] . ':' .
str_replace('|', '=7C', $this->DKIM_QP($header['value']));
}
//Skip straight to the next header
Expand All @@ -4617,9 +4617,9 @@ public function DKIM_Add($headers_line, $subject, $body)
//Fold long values
if (strlen($copiedHeader) > self::STD_LINE_LENGTH - 3) {
$copiedHeaderFields .= substr(
chunk_split($copiedHeader, self::STD_LINE_LENGTH - 3, static::$LE.' '),
chunk_split($copiedHeader, self::STD_LINE_LENGTH - 3, static::$LE . ' '),
0,
-strlen(static::$LE.' ')
-strlen(static::$LE . ' ')
);
} else {
$copiedHeaderFields .= $copiedHeader;
Expand Down

0 comments on commit 7153482

Please sign in to comment.