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] Arc regex to no longer match on dmarc= #4960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JasonStephenson
Copy link
Contributor

Fixes #4959
new_regex_correct_match
new_regex_correct_nomatch
old_regex_wrong_match

@@ -639,7 +639,7 @@ local function prepare_arc_selector(task, sel)
local ar_header = task:get_header('Authentication-Results')

if ar_header then
local arc_match = string.match(ar_header, 'arc=(%w+)')
local arc_match = string.match(ar_header, '[; ]arc=(%w+)')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't match a string where arc= is the first element...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any possible choices to match that thing with Lua match I'm afraid. With PCRE it's trivial.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaah pants. I'll have another go at this soon

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.

[BUG] Incorrect ARC-Seal generated when reusing authentication results
2 participants