@@ -60,7 +60,7 module Redmine | |||
|
60 | 60 | extension = m[2].downcase |
|
61 | 61 | @known_types ||= Hash.new do |h, ext| |
|
62 | 62 | type = EXTENSIONS[ext] |
|
63 |
type ||= MIME::Types. |
|
|
63 | type ||= MIME::Types.type_for(ext).first.to_s.presence | |
|
64 | 64 | h[ext] = type |
|
65 | 65 | end |
|
66 | 66 | @known_types[extension] |
General Comments 0
You need to be logged in to leave comments.
Login now