Pārlūkot izejas kodu

[Minor] Oops, fix foldl call

tags/3.2
Vsevolod Stakhov pirms 2 gadiem
vecāks
revīzija
e834cdb26d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      rules/misc.lua

+ 1
- 1
rules/misc.lua Parādīt failu

@@ -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)

Notiek ielāde…
Atcelt
Saglabāt