]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_magic: Relax jpeg pattern
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 17:42:52 +0000 (18:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 17:42:52 +0000 (18:42 +0100)
lualib/lua_magic/patterns.lua

index 47026478bab45919848c813aca5b8541bf8b8d5f..5444361a2ba56c750c9621a7c7f92cce99ee2454 100644 (file)
@@ -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,
       },
     },
   },