]> source.dussan.org Git - rspamd.git/commitdiff
Fix HTTP_TO_IP in the same way as HTTP_TO_HTTPS 1589/head
authorSteve Freegard <steve@stevefreegard.com>
Thu, 13 Apr 2017 10:38:41 +0000 (11:38 +0100)
committerSteve Freegard <steve@stevefreegard.com>
Thu, 13 Apr 2017 10:38:41 +0000 (11:38 +0100)
rules/html.lua

index 340716b85c3345c095e5490cfde725efc7e7073b..85eea48dfa7a8499b9c16d8d2928cd976e196ae0 100644 (file)
@@ -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