summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-04-13 12:41:34 +0200
committerGitHub <noreply@github.com>2017-04-13 12:41:34 +0200
commitee3c0942b2a74d395f9ebbd44ffd031f5070b34b (patch)
treefe3244d3cb80193e738cd5884bcfe2d5e1e4b049
parent260d6e7ef66169ffb66a4b45887fd521426faa6b (diff)
parent5ff5ec0a9fefd374cebc90b92f1927581d9ae83f (diff)
downloadrspamd-ee3c0942b2a74d395f9ebbd44ffd031f5070b34b.tar.gz
rspamd-ee3c0942b2a74d395f9ebbd44ffd031f5070b34b.zip
Merge pull request #1589 from smfreegard/rules_20170411
Fix HTTP_TO_IP in the same way as HTTP_TO_HTTPS
-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