aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-15 10:48:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-15 10:48:58 +0100
commit46b96c87b283858b284798dd8a3959c831a09311 (patch)
treecdfd47e425da7091622c49b11485e381c469def8 /src
parentf8718a1191753a141a63ee716aad27df17562df2 (diff)
downloadrspamd-46b96c87b283858b284798dd8a3959c831a09311.tar.gz
rspamd-46b96c87b283858b284798dd8a3959c831a09311.zip
[Fix] Add sanity check for url filters
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/multimap.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 5976a7c5a..31cd01d50 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -60,6 +60,10 @@ local function apply_hostname_filter(task, filter, hostname, r)
end
local function apply_url_filter(task, filter, url, r)
+ if not filter then
+ return url:get_host()
+ end
+
if filter == 'tld' then
return url:get_tld()
elseif filter == 'full' then