commit 4cd7179: [Fix] #3249
Jan Smutny
js at excello.cz
Wed Apr 22 09:56:09 UTC 2020
Author: Jan Smutny
Date: 2020-04-21 14:37:19 +0200
URL: https://github.com/rspamd/rspamd/commit/4cd7179dc1c03dcccec6f1a59bdf5dac0a102193 (refs/pull/3345/head)
[Fix] #3249
---
src/plugins/lua/url_redirector.lua | 4 ++--
1 file 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
More information about the Commits
mailing list