aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-12 19:29:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-12 20:26:17 +0100
commitc4274f305a103d22f51d2b843720877a091e688f (patch)
treeac77fff4a3c11575c28b4f28a006e4d2a4439d4b /src/plugins
parent809d57ec6a1152b040a24c2ede1d22c5effc0dcb (diff)
downloadrspamd-c4274f305a103d22f51d2b843720877a091e688f.tar.gz
rspamd-c4274f305a103d22f51d2b843720877a091e688f.zip
[Fix] Use raw urls when sending requests to redirector
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/url_redirector.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua
index 698ed6f8c..a6e7afc11 100644
--- a/src/plugins/lua/url_redirector.lua
+++ b/src/plugins/lua/url_redirector.lua
@@ -230,7 +230,7 @@ local function resolve_cached(task, orig_url, url, key, param, ntries)
end
local function url_redirector_handler(task, url, param)
- local url_str = tostring(url)
+ local url_str = url:get_raw()
-- 32 base32 characters are roughly 20 bytes of data or 160 bits
local key = settings.key_prefix .. hash.create(url_str):base32():sub(1, 32)
resolve_cached(task, url_str, url_str, key, param, 1)