]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Inject redirected url
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 23 Aug 2019 12:28:07 +0000 (13:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 23 Aug 2019 13:04:41 +0000 (14:04 +0100)
src/plugins/lua/url_redirector.lua

index a907fe107cedef42d037f5d3f7b2d8419bd37ea4..4952dc25f890e5c9648cac9b4e7721cb3b9b579e 100644 (file)
@@ -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()))