diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-15 10:48:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-15 10:48:58 +0100 |
commit | 46b96c87b283858b284798dd8a3959c831a09311 (patch) | |
tree | cdfd47e425da7091622c49b11485e381c469def8 | |
parent | f8718a1191753a141a63ee716aad27df17562df2 (diff) | |
download | rspamd-46b96c87b283858b284798dd8a3959c831a09311.tar.gz rspamd-46b96c87b283858b284798dd8a3959c831a09311.zip |
[Fix] Add sanity check for url filters
-rw-r--r-- | src/plugins/lua/multimap.lua | 4 |
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 |