aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-25 13:55:21 +0000
committerGitHub <noreply@github.com>2017-01-25 13:55:21 +0000
commit2e2bf82e7388e72ea90b79c74d490e33bf5569a5 (patch)
tree242884a4db8a1807de0983a7ac12c5c194c2a56b
parentb3f51da0cdd5de1cb25f6bb480e9027e95fc2d49 (diff)
parent6e76102295c0b50a31125b0a6c64efcf09350e6b (diff)
downloadrspamd-2e2bf82e7388e72ea90b79c74d490e33bf5569a5.tar.gz
rspamd-2e2bf82e7388e72ea90b79c74d490e33bf5569a5.zip
Merge pull request #1371 from fatalbanana/l
[Minor] Fix saving tags in URL reputation plugin
-rw-r--r--src/plugins/lua/url_reputation.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plugins/lua/url_reputation.lua b/src/plugins/lua/url_reputation.lua
index 202cb4496..a398d89d9 100644
--- a/src/plugins/lua/url_reputation.lua
+++ b/src/plugins/lua/url_reputation.lua
@@ -241,14 +241,9 @@ local function tags_save(task)
local redis_args = {}
for dom, v in pairs(tags) do
table.insert(redis_keys, settings.key_prefix_tags .. dom)
- local tmp, tmp2 = {}, {}
for k, vv in pairs(v) do
- table.insert(tmp, k)
- for kk in pairs(vv) do
- table.insert(tmp2, kk)
- end
+ table.insert(redis_args, k .. '|' .. table.concat(vv, ','))
end
- table.insert(redis_args, table.concat(tmp, ',') .. '|' .. table.concat(tmp2, ','))
end
local redis_final = {redis_set_script_sha}
table.insert(redis_final, #redis_keys)