aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-11 20:59:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-11 20:59:25 +0000
commite834cdb26df34796124e5f4132e7fd9e8e359692 (patch)
treea0365b35bab89eb3683342e7d736eae3142351c2 /rules
parentc6f7b897d45cbe4a166334ca60d29b3b7391bd3a (diff)
downloadrspamd-e834cdb26df34796124e5f4132e7fd9e8e359692.tar.gz
rspamd-e834cdb26df34796124e5f4132e7fd9e8e359692.zip
[Minor] Oops, fix foldl call
Diffstat (limited to 'rules')
-rw-r--r--rules/misc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 9c8cade71..93512cb9f 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -339,7 +339,7 @@ rspamd_config.URI_COUNT_ODD = {
local ct = task:get_header('Content-Type')
if (ct and ct:lower():find('^multipart/alternative')) then
local urls = task:get_urls_filtered(nil, {'subject', 'html_displayed', 'special'}) or {}
- local nurls = fun.foldl(function(acc, val) return acc + val:get_count() end, 0)
+ local nurls = fun.foldl(function(acc, val) return acc + val:get_count() end, 0, urls)
if nurls % 2 == 1 then
return true, 1.0, tostring(nurls)