aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-23 12:13:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-23 12:13:54 +0100
commit34036d3776a2d7d45c45c41ec326451abf21f33e (patch)
tree94a182a553131cb74122f5162f96a1fed7791ab7
parent3402e775367473d4f43fc9b13cd016584b21a575 (diff)
downloadrspamd-34036d3776a2d7d45c45c41ec326451abf21f33e.tar.gz
rspamd-34036d3776a2d7d45c45c41ec326451abf21f33e.zip
[Minor] Add .dwg files support
-rw-r--r--lualib/lua_magic/patterns.lua7
-rw-r--r--lualib/lua_magic/types.lua4
2 files changed, 11 insertions, 0 deletions
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',