]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Relax rtf magic as M$ does
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Sep 2019 16:21:44 +0000 (17:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Sep 2019 16:21:44 +0000 (17:21 +0100)
Mentioned by: Greg Copenhaver

lualib/lua_magic/patterns.lua

index 1ac18c8ea002f09b616f7403ddeb6f9ac6ab1dd7..f0759de5d4d46bc3abbc862be3b3abee5cea7214 100644 (file)
@@ -55,8 +55,8 @@ local patterns = {
   rtf = {
     matches = {
       {
-        string = [[{\\rtf\d]],
-        position = 6,
+        string = [[{\\rt]],
+        position = 4,
         weight = 60,
       }
     }