aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-30 13:51:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-30 13:51:54 +0000
commitc23d728d75f769ea8223b660a0d766dcb22c3cb1 (patch)
tree3814f67165fa9523df199e580a730aa316424ece /rules
parentd834a31a5ab6f963e38bf0185c30eb0bd74270f9 (diff)
downloadrspamd-c23d728d75f769ea8223b660a0d766dcb22c3cb1.tar.gz
rspamd-c23d728d75f769ea8223b660a0d766dcb22c3cb1.zip
[Minor] Fix rule
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 026ca35ac..15670b4b5 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -649,7 +649,7 @@ reconf['MISSING_MIMEOLE'] = {
-- Empty delimiters between header names and header values
local function gen_check_header_delimiter_empty(header_name)
return function(task)
- for _,rh in ipairs(task:get_header_full(header_name)) do
+ for _,rh in ipairs(task:get_header_full(header_name) or {}) do
if rh['empty_separator'] then return true end
end
return false