]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Another try to fix the logic around 8bit charsets handling
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 May 2021 20:20:22 +0000 (21:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 May 2021 20:20:22 +0000 (21:20 +0100)
lualib/lua_magic/heuristics.lua

index b124954f1099bdd0d05474a0990aa1b42f8f00d1..e9f8f847e677f1f761b2677a34ba2fcdc96e1512 100644 (file)
@@ -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