commit e4dbb87: [Minor] Lua_magic: Relax jpeg pattern

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Sep 24 17:49:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-24 18:42:52 +0100
URL: https://github.com/rspamd/rspamd/commit/e4dbb877a320ad27592fb3cbfec0f45085c01012 (HEAD -> master)

[Minor] Lua_magic: Relax jpeg pattern

---
 lualib/lua_magic/patterns.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua
index 47026478b..5444361a2 100644
--- a/lualib/lua_magic/patterns.lua
+++ b/lualib/lua_magic/patterns.lua
@@ -397,9 +397,9 @@ local patterns = {
         weight = 60,
       },
       {
-        string = [[^\x{ff}\x{d8}\x{ff}(?:[\x{e0}\x{e1}])]],
+        string = [[^\x{ff}\x{d8}\x{ff}]],
         weight = 60,
-        position = 4,
+        position = 3,
       },
     },
   },


More information about the Commits mailing list