aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 11:42:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 11:42:22 +0000
commitcdda78c52ff17e448c65303ab341ff64ba53358b (patch)
tree8d71c8bb71d216d440182fc59ee0f481b4b4ac96
parentadce4f38a87bf1db5af13c3ad301429f2483c956 (diff)
downloadrspamd-cdda78c52ff17e448c65303ab341ff64ba53358b.tar.gz
rspamd-cdda78c52ff17e448c65303ab341ff64ba53358b.zip
[Minor] Propely set map data
-rw-r--r--src/lua/global_functions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/global_functions.lua b/src/lua/global_functions.lua
index f335caf40..64f4f6b72 100644
--- a/src/lua/global_functions.lua
+++ b/src/lua/global_functions.lua
@@ -440,7 +440,7 @@ function rspamd_map_add(mname, optname, mtype, description)
local data = {}
for _,elt in ipairs(opt) do
if type(elt) == 'string' then
- table.insert(data, tostring(elt))
+ data[elt] = '1'
end
end