Patch #29383 » minimime101.patch
| Gemfile (working copy) | ||
|---|---|---|
| 7 | 7 |
gem "rails", "5.2.1" |
| 8 | 8 |
gem "coderay", "~> 1.1.1" |
| 9 | 9 |
gem "request_store", "1.0.5" |
| 10 |
gem "mini_mime", "~> 1.0" |
|
| 10 |
gem "mini_mime", "~> 1.0.1"
|
|
| 11 | 11 |
gem "actionpack-xml_parser" |
| 12 | 12 |
gem "roadie-rails", "~> 1.3.0" |
| 13 | 13 |
gem "roadie", "~> 3.2.1" |
| lib/redmine/mime_type.rb (working copy) | ||
|---|---|---|
| 64 | 64 |
if extension.present? |
| 65 | 65 |
@known_types ||= Hash.new do |h, ext| |
| 66 | 66 |
type = EXTENSIONS[ext] |
| 67 |
type ||= MiniMime.lookup_by_filename("a.#{ext}").try(:content_type)
|
|
| 67 |
type ||= MiniMime.lookup_by_extension(ext).try(:content_type)
|
|
| 68 | 68 |
h[ext] = type |
| 69 | 69 |
end |
| 70 | 70 |
@known_types[extension] |