diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-23 17:26:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-23 17:26:30 +0100 |
commit | 54fd0d2afbdfd60bca200ea99c116b3f72c03b04 (patch) | |
tree | 802510576da29e3802b4c07d5111ceb08c0a5b02 /conf | |
parent | ff8400a269f8aed9d2c9396a48f7daedde238452 (diff) | |
download | rspamd-54fd0d2afbdfd60bca200ea99c116b3f72c03b04.tar.gz rspamd-54fd0d2afbdfd60bca200ea99c116b3f72c03b04.zip |
Tune R_EMPTY_IMAGE to avoid false positives.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/lua/html.lua | 4 |
1 files 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 |