]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Url_redirector: Set redirect_target flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Apr 2021 16:24:59 +0000 (17:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Apr 2021 16:24:59 +0000 (17:24 +0100)
src/plugins/lua/url_redirector.lua

index 8572bb9afc32304bd19c30e71478cd9a3cb681a5..8b60abb94a9b0a82aec68f641bc6f2fa629e4749 100644 (file)
@@ -59,7 +59,7 @@ local settings = {
 
 local function adjust_url(task, orig_url, redir_url)
   if type(redir_url) == 'string' then
-    redir_url = rspamd_url.create(task:get_mempool(), redir_url)
+    redir_url = rspamd_url.create(task:get_mempool(), redir_url, {'redirect_target'})
   end
 
   if redir_url then