aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
diff options
context:
space:
mode:
authorSteve Freegard <steve@stevefreegard.com>2017-04-13 11:38:41 +0100
committerSteve Freegard <steve@stevefreegard.com>2017-04-13 11:38:41 +0100
commit5ff5ec0a9fefd374cebc90b92f1927581d9ae83f (patch)
treea9efd2e55a329b5068b000854bcf759c93f75b77 /rules/html.lua
parent77f3cfc7101a288a62e8f1e8127bf19d38522bec (diff)
downloadrspamd-5ff5ec0a9fefd374cebc90b92f1927581d9ae83f.tar.gz
rspamd-5ff5ec0a9fefd374cebc90b92f1927581d9ae83f.zip
Fix HTTP_TO_IP in the same way as HTTP_TO_HTTPS
Diffstat (limited to 'rules/html.lua')
-rw-r--r--rules/html.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/html.lua b/rules/html.lua
index 340716b85..85eea48df 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -312,6 +312,7 @@ rspamd_config.HTTP_TO_IP = {
for _,p in ipairs(tp) do
if p:is_html() then
local hc = p:get_html()
+ if (not hc) then return false end
local found = false
hc:foreach_tag('a', function (tag, length)
if (found) then return true end