Skip to content

Undefined array key "t"... (if exists tag "x=" without tag "t=") #14

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

StinkyTACO
Copy link

(Validator.php): if ((int) $dkimTags['x'] < (int) $dkimTags['t']) {

MUST BE:
if ( isset($dkimTags['t']) && ((int) $dkimTags['x'] < (int) $dkimTags['t']) ) {
The value of the "x=" tag MUST be greater than the value of the "t=" tag if both are present.

bostjan and others added 21 commits August 13, 2015 00:15
…me being, add license and disclamer, suggest original package.
…ins about it.

As soon as original package updates this dependency to recent release (2.x+), this should be reverted.
Reason:
If email content file is pulled directly from Maildir on Linux, it has
body newlines separated by \n rather than \r\n which is what mail systems
use internally (unverified claim!). This broke validation.
Merging original licensing info, as specified by original author:
angrychimp#5
Fix DKIM signatures ending with a semicolon
The value of the "x=" tag MUST be greater than the value of the "t=" tag if both are present.
@StinkyTACO
Copy link
Author

StinkyTACO commented Apr 12, 2024

this is my first PR i don't know if i did it right.

all that needs fixing is that one line.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants