aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-22 13:00:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-22 13:00:44 +0100
commitbbed3920bc9e93523618a7780295120ffe76c37f (patch)
tree9151c6bc43efa4906762aefc1929d7e360cf05a7 /src
parenta0fd44840c7456f226c29a6cd15bc01f7a31930a (diff)
downloadrspamd-bbed3920bc9e93523618a7780295120ffe76c37f.tar.gz
rspamd-bbed3920bc9e93523618a7780295120ffe76c37f.zip
[Fix] Lua_mime: Fix reversed extensions map
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/mime_types.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index d571f679a..de53b74a7 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -547,14 +547,6 @@ if opts then
end
end
- for ext,inner_tbl in pairs(settings.extension_map) do
- for _,elt in ipairs(inner_tbl) do
- if not lua_mime.reversed_extensions_map[elt.ct] then
- lua_mime.reversed_extensions_map[elt.ct] = ext
- end
- end
- end
-
local map_type = 'map'
if settings['regexp'] then map_type = 'regexp' end
map = lua_maps.rspamd_map_add('mime_types', 'file', map_type,