diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-11 16:08:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-11 16:08:26 +0100 |
commit | 9f97b04e03c4662d31f7158747fe11481949ce68 (patch) | |
tree | 6525459ecb4a3deb3230f79dcfa77e7efb45fe0b /src/plugins/lua/multimap.lua | |
parent | 2a200a2d3bd50bcee3190169037ee65a2b78393c (diff) | |
download | rspamd-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.lua | 4 |
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 |