From 54fd0d2afbdfd60bca200ea99c116b3f72c03b04 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 23 Jul 2015 17:26:30 +0100 Subject: [PATCH] Tune R_EMPTY_IMAGE to avoid false positives. --- conf/lua/html.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/lua/html.lua b/conf/lua/html.lua index 161bbe3b5..951cc4952 100644 --- a/conf/lua/html.lua +++ b/conf/lua/html.lua @@ -58,9 +58,9 @@ rspamd_config.R_EMPTY_IMAGE = function(task) for _,p in ipairs(tp) do if p:is_html() then local hc = p:get_html() - local lines = p:get_lines_count() + local len = p:get_length() - if lines < 5 then + if len < 50 then local images = hc:get_images() if images then -- 2.39.5