aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/multimap.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-11 16:08:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-11 16:08:26 +0100
commit9f97b04e03c4662d31f7158747fe11481949ce68 (patch)
tree6525459ecb4a3deb3230f79dcfa77e7efb45fe0b /src/plugins/lua/multimap.lua
parent2a200a2d3bd50bcee3190169037ee65a2b78393c (diff)
downloadrspamd-9f97b04e03c4662d31f7158747fe11481949ce68.tar.gz
rspamd-9f97b04e03c4662d31f7158747fe11481949ce68.zip
[Minor] Fix multimap initialization
Diffstat (limited to 'src/plugins/lua/multimap.lua')
-rw-r--r--src/plugins/lua/multimap.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index d17a24bf0..e40cb01cc 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -550,7 +550,7 @@ local function add_multimap_rule(key, newrule)
return nil
end
- newrule['redis_key'] = string.match(newrule['map'], '^redis://(.*$)')
+ newrule['redis_key'] = string.match(newrule['map'], '^redis://(.*)$')
if newrule['redis_key'] then
ret = true
@@ -684,8 +684,6 @@ if opts and type(opts) == 'table' then
else
table.insert(rules, rule)
end
- else
- rspamd_logger.errx(rspamd_config, 'parameter ' .. k .. ' is invalid, must be an object')
end
end
-- add fake symbol to check all maps inside a single callback