Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix SPF Record verification failing for domains with a label starting with "all" (#145) #147

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

maxime-huyghe
Copy link
Contributor

Hello ! There is already an issue and a commit for this bug (ricco386@2690627), but I discovered it independently and came up with a more complete fix.

My solution ensures that, if .all ever becomes a valid TLD, the parsing won't stop working again, because it ensures that what we're matching is really an all mechanism and not part of some other mechanism.

It also fixes another bug : the current regex only matches one term after the all, so multiple "trailing" terms or random text with spaces are not ignored properly.

@Tazmaniac
Copy link

This PR fix #145

@seanthegeek seanthegeek merged commit 7ff1b50 into domainaware:master Oct 26, 2024
1 check passed
seanthegeek added a commit that referenced this pull request Oct 26, 2024
- SPF record validation fixes (PR #147)
  - Accept mechanisms with domains that start with `all` (Fixes #145)
  - Ignore multiple trailing mechanisms and random text with spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants