]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Ignore content type/subtype case 788/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 2 Aug 2016 08:26:49 +0000 (11:26 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 2 Aug 2016 08:26:49 +0000 (11:26 +0300)
to comply with RFC 2045

src/plugins/lua/mime_types.lua

index 1395149b6dc7038abdfadca5ca776512827c77d0..e1b2123f44aea9d91995bf49235df9bb0917af04 100644 (file)
@@ -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]', '?')