aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJan Smutny <js@excello.cz>2020-04-21 14:37:19 +0200
committerJan Smutny <js@excello.cz>2020-04-21 14:37:19 +0200
commit4cd7179dc1c03dcccec6f1a59bdf5dac0a102193 (patch)
tree01213eb221bd5d28bc7bf6d1b724900ddbc3c14a /src/plugins
parentcfcecb66f88448272a3a0c77e0a4782f6924a822 (diff)
downloadrspamd-4cd7179dc1c03dcccec6f1a59bdf5dac0a102193.tar.gz
rspamd-4cd7179dc1c03dcccec6f1a59bdf5dac0a102193.zip
[Fix] #3249
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/url_redirector.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua
index ba7d77649..8572bb9af 100644
--- a/src/plugins/lua/url_redirector.lua
+++ b/src/plugins/lua/url_redirector.lua
@@ -146,13 +146,13 @@ local function cache_url(task, orig_url, url, key, param)
true, -- is write
redis_set_cb, --callback
'SETEX', -- command
- {key, tostring(settings.expire), url} -- arguments
+ {key, tostring(settings.expire), str_url} -- arguments
)
if not ret then
rspamd_logger.errx(task, 'cannot make redis request to cache results')
else
- conn:add_cmd('ZINCRBY', {settings.top_urls_key, '1', url})
+ conn:add_cmd('ZINCRBY', {settings.top_urls_key, '1', str_url})
end
end