From: Vsevolod Stakhov Date: Tue, 24 Sep 2019 17:42:52 +0000 (+0100) Subject: [Minor] Lua_magic: Relax jpeg pattern X-Git-Tag: 2.0~136 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e4dbb877a320ad27592fb3cbfec0f45085c01012;p=rspamd.git [Minor] Lua_magic: Relax jpeg pattern --- 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, }, }, },