diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-07 11:45:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-07 11:45:43 +0100 |
commit | d6ea2092cd8f925c62798c5e473bb6c4467c3965 (patch) | |
tree | e643f2be5c6cd4846dd850a29433ae88e25c2598 /lualib/lua_magic/heuristics.lua | |
parent | e07f6079fb33a30714d40fb3b3864d9d13648f82 (diff) | |
download | rspamd-d6ea2092cd8f925c62798c5e473bb6c4467c3965.tar.gz rspamd-d6ea2092cd8f925c62798c5e473bb6c4467c3965.zip |
[Minor] Be more strict when checking for text parts
Diffstat (limited to 'lualib/lua_magic/heuristics.lua')
-rw-r--r-- | lualib/lua_magic/heuristics.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index fb105932a..306b3e188 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -336,7 +336,7 @@ exports.text_part_heuristic = function(part, log_obj) end lua_util.debugm(N, log_obj, "text part check: %s printable, %s non-printable, %s total", tlen - non_printable, non_printable, tlen) - if non_printable / tlen > 0.0625 then + if non_printable / tlen > 0.0078125 then return false end |