Standards

This commit is contained in:
Marcus Bointon 2019-09-02 19:58:06 +02:00
parent a0ab65d0dc
commit 2d1ab8e07c
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 6 additions and 6 deletions

View File

@ -2061,13 +2061,13 @@ EOT;
'DKIM header canonicalization incorrect'
);
//Check that long folded lines with runs of spaces are canonicalised properly
$preheaders = "Long-Header-1: <https://example.com/somescript.php?".
"id=1234567890&name=Abcdefghijklmnopquestuvwxyz&hash=\r\n abc1234".
"\r\nLong-Header-2: This is a long header value that contains runs of spaces and trailing ".
$preheaders = 'Long-Header-1: <https://example.com/somescript.php?' .
"id=1234567890&name=Abcdefghijklmnopquestuvwxyz&hash=\r\n abc1234" .
"\r\nLong-Header-2: This is a long header value that contains runs of spaces and trailing " .
"\r\n and is folded onto 2 lines";
$postheaders = "long-header-1:<https://example.com/somescript.php?id=1234567890&".
"name=Abcdefghijklmnopquestuvwxyz&hash=abc1234\r\nlong-header-2:This is a long".
" header value that contains runs of spaces and trailing and is folded onto 2 lines";
$postheaders = 'long-header-1:<https://example.com/somescript.php?id=1234567890&' .
"name=Abcdefghijklmnopquestuvwxyz&hash=abc1234\r\nlong-header-2:This is a long" .
' header value that contains runs of spaces and trailing and is folded onto 2 lines';
$this->assertEquals(
$postheaders,
$this->Mail->DKIM_HeaderC($preheaders),