From: Vsevolod Stakhov Date: Mon, 23 Sep 2019 11:13:54 +0000 (+0100) Subject: [Minor] Add .dwg files support X-Git-Tag: 2.0~156 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=34036d3776a2d7d45c45c41ec326451abf21f33e;p=rspamd.git [Minor] Add .dwg files support --- diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index 8f4bc4092..0b5e556d1 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -371,6 +371,13 @@ local patterns = { }, } }, + dwg = { + matches = { + string = 'AC10[12][2-9]', + position = 6, + weight = 60, + } + }, } return patterns \ No newline at end of file diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index 32c7cd131..2b2545d87 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -241,6 +241,10 @@ local types = { type = 'image', ct = 'image/bmp', }, + dwg = { + type = 'image', + ct = 'image/vnd.dwg', + }, -- Text txt = { type = 'text',