commit 93d4fba: [Minor] Inject redirected url

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Aug 23 13:07:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-23 13:28:07 +0100
URL: https://github.com/rspamd/rspamd/commit/93d4fba9e2889fa05e1b526173fa2028e0dff571

[Minor] Inject redirected url

---
 src/plugins/lua/url_redirector.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua
index a907fe107..4952dc25f 100644
--- a/src/plugins/lua/url_redirector.lua
+++ b/src/plugins/lua/url_redirector.lua
@@ -64,6 +64,7 @@ local function adjust_url(task, orig_url, redir_url)
 
   if redir_url then
     orig_url:set_redirected(redir_url)
+    task:inject_url(redir_url)
     if settings.redirector_symbol then
       task:insert_result(settings.redirector_symbol, 1.0,
           string.format('%s->%s', orig_url:get_host(), redir_url:get_host()))


More information about the Commits mailing list