]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] URL redirector: Fix call to is_redirector
authorAndrew Lewis <nerf@judo.za.org>
Thu, 30 Mar 2017 08:43:15 +0000 (10:43 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 30 Mar 2017 08:43:15 +0000 (10:43 +0200)
 - Reported by: @dehnli

src/plugins/lua/url_redirector.lua

index 710dc7f1af275d8277da3c747fe9e7395d190f64..d75de4a25d460d6a60e42d2924e39e3ce6b30463 100644 (file)
@@ -79,7 +79,7 @@ local function resolve_cached(task, orig_url, url, key, param, ntries)
             orig_url, loc)
           if loc then
             if settings.redirectors_only then
-              if rspamd_plugins.surbl.is_redirector(loc) then
+              if rspamd_plugins.surbl.is_redirector(task, loc) then
                 resolve_cached(task, orig_url, loc, key, param, ntries + 1)
               else
                 rspamd_logger.debugm(N, task,