DKIMValidator
DKIMValidator copied to clipboard
Fix canonicalization defaults ('Unknown body canonicalization algorithm: '), fixes #10
Canonicalization algorithm "simple" must be interpreted as "simple/simple". According to the RFC:
rfc4871-dkimbase.html#dkim-sig-hdr rfc6376#section-3.5 ..If only one algorithm is named, that algorithm is used for the header and "simple" is used for the body. For example, "c=relaxed" is treated the same as "c=relaxed/simple"...
I had a validaton error with a rapidmail newsletter due to this.
This trivial PR fixes the issue for me.
OK, the dev branch seems broken, here's for convenience the patch file for 0.3. fix-canonicalization-defaults-for-phpmailer-dkimvalidator-0-3.patch.txt