diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-04-13 12:41:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 12:41:34 +0200 |
commit | ee3c0942b2a74d395f9ebbd44ffd031f5070b34b (patch) | |
tree | fe3244d3cb80193e738cd5884bcfe2d5e1e4b049 | |
parent | 260d6e7ef66169ffb66a4b45887fd521426faa6b (diff) | |
parent | 5ff5ec0a9fefd374cebc90b92f1927581d9ae83f (diff) | |
download | rspamd-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.lua | 1 |
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 |