From: Alexander Moisseev Date: Tue, 2 Aug 2016 08:26:49 +0000 (+0300) Subject: [Fix] Ignore content type/subtype case X-Git-Tag: 1.3.2~81^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F788%2Fhead;p=thirdparty%2Frspamd.git [Fix] Ignore content type/subtype case to comply with RFC 2045 --- diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 1395149b6d..e1b2123f44 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]', '?')