summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-08-02 11:26:49 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-08-02 11:26:49 +0300
commite07402367df5174f5c6650723588458c5eaf861f (patch)
treeacf0927bdd19b152d3d494c8e959a13594945dd1 /src/plugins/lua
parentfe918fe1f9050d009d709c3e5806fcb8e14a6dae (diff)
downloadrspamd-e07402367df5174f5c6650723588458c5eaf861f.tar.gz
rspamd-e07402367df5174f5c6650723588458c5eaf861f.zip
[Fix] Ignore content type/subtype case
to comply with RFC 2045
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/mime_types.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 1395149b6..e1b2123f4 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -147,7 +147,7 @@ local function check_mime_type(task)
else
-- Check for attachment
local filename = p:get_filename()
- local ct = string.format('%s/%s', mtype, subtype)
+ local ct = string.format('%s/%s', mtype, subtype):lower()
if filename then
filename = filename:gsub('[^%s%g]', '?')