diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-24 11:42:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-24 11:42:22 +0000 |
commit | cdda78c52ff17e448c65303ab341ff64ba53358b (patch) | |
tree | 8d71c8bb71d216d440182fc59ee0f481b4b4ac96 | |
parent | adce4f38a87bf1db5af13c3ad301429f2483c956 (diff) | |
download | rspamd-cdda78c52ff17e448c65303ab341ff64ba53358b.tar.gz rspamd-cdda78c52ff17e448c65303ab341ff64ba53358b.zip |
[Minor] Propely set map data
-rw-r--r-- | src/lua/global_functions.lua | 2 |
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 |