From: Steve Freegard Date: Thu, 13 Apr 2017 10:38:41 +0000 (+0100) Subject: Fix HTTP_TO_IP in the same way as HTTP_TO_HTTPS X-Git-Tag: 1.5.6~22^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ff5ec0a9fefd374cebc90b92f1927581d9ae83f;p=rspamd.git Fix HTTP_TO_IP in the same way as HTTP_TO_HTTPS --- 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