Skip to content

Commit

Permalink
Fix canonicalization format, fixes PHPMailer#10
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin committed Dec 24, 2022
1 parent 3f60208 commit 5f59d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function validate(): ValidationResults
$validationResult->addPass("Compatible DKIM version: ${dkimTags['v']}" . '.');

//Validate canonicalization algorithms for header and body
[$headerCA, $bodyCA] = explode('/', $dkimTags['c'], 2);
[$headerCA, $bodyCA] = explode('/', $dkimTags['c'], 2) + [1 => 'simple'];
if (
$headerCA !== self::CANONICALIZATION_HEADERS_RELAXED &&
$headerCA !== self::CANONICALIZATION_HEADERS_SIMPLE
Expand Down

0 comments on commit 5f59d60

Please sign in to comment.