commit c23d728: [Minor] Fix rule
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Nov 30 13:56:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-11-30 13:51:54 +0000
URL: https://github.com/rspamd/rspamd/commit/c23d728d75f769ea8223b660a0d766dcb22c3cb1 (HEAD -> master)
[Minor] Fix rule
---
rules/regexp/headers.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the Commits
mailing list