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

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

Conversation

maxime-huyghe
Copy link

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.

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.

1 participant