]> source.dussan.org Git - rspamd.git/commitdiff
Fix regex to no longer match on dmarc=
authorJason Stephenson <jstephenson@mimecast.com>
Mon, 13 May 2024 10:55:47 +0000 (11:55 +0100)
committerJason Stephenson <jstephenson@mimecast.com>
Mon, 13 May 2024 10:55:47 +0000 (11:55 +0100)
src/plugins/lua/arc.lua

index ff19aef4cee6537dbdc66068ffdbeed29cbf667c..1533655d52564b8c5c44576f5a8525826a3118de 100644 (file)
@@ -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+)')
 
         if arc_match then
           if arc_match == 'none' or arc_match == 'pass' then