From: Vsevolod Stakhov Date: Sat, 13 Aug 2016 16:16:26 +0000 (+0100) Subject: [Fix] Fix filename maps filter X-Git-Tag: 1.3.3~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=34f661ef9808fd63b94ade8d57091a1c4f30a7e1;p=rspamd.git [Fix] Fix filename maps filter --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 92fbe9e4c..1d6657f0a 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -171,7 +171,7 @@ local function apply_addr_filter(task, filter, input, rule) return input end -local function apply_filename_filter(filter, fn, r) +local function apply_filename_filter(task, filter, fn, r) if filter == 'extension' or filter == 'ext' then return string.match(fn, '%.([^.]+)$') elseif string.find(filter, 'regexp:') then