commit 2576b7d: [Minor] Relax rtf magic as M$ does

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Sep 9 16:28:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-09 17:21:44 +0100
URL: https://github.com/rspamd/rspamd/commit/2576b7dde8dd6b222136fc1ceeefbfa5586553b2 (HEAD -> master)

[Minor] Relax rtf magic as M$ does
Mentioned by: Greg Copenhaver

---
 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 1ac18c8ea..f0759de5d 100644
--- a/lualib/lua_magic/patterns.lua
+++ b/lualib/lua_magic/patterns.lua
@@ -55,8 +55,8 @@ local patterns = {
   rtf = {
     matches = {
       {
-        string = [[{\\rtf\d]],
-        position = 6,
+        string = [[{\\rt]],
+        position = 4,
         weight = 60,
       }
     }


More information about the Commits mailing list