aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-17 21:20:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-17 21:20:22 +0100
commit268bc590b620479b80f8eb2c6f258fc70d09b7cf (patch)
tree7d9cb079a9ecbd41ba47244c51319aacc1ef2595 /lualib/lua_magic
parentf8e81ccc2c3da02b7d0a0451a034cccf8b5846b8 (diff)
downloadrspamd-268bc590b620479b80f8eb2c6f258fc70d09b7cf.tar.gz
rspamd-268bc590b620479b80f8eb2c6f258fc70d09b7cf.zip
[Minor] Another try to fix the logic around 8bit charsets handling
Diffstat (limited to 'lualib/lua_magic')
-rw-r--r--lualib/lua_magic/heuristics.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index b124954f1..e9f8f847e 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -347,9 +347,6 @@ exports.text_part_heuristic = function(part, log_obj, _)
bit.band(bytes[idx + 2], 0xc0) == 0x80 and
bit.band(bytes[idx + 3], 0xc0) == 0x80 then
return true,3
- else
- -- Non utf
- return false,0
end
n8bit = n8bit + 1