Project

General

Profile

Patch #16710 » redmine-2.5.1-mime-types.patch

Patch for the issue - Szilveszter Ördög, 2014-04-17 14:39

View differences:

redmine-2.5.1/lib/redmine/mime_type.rb 2014-04-17 13:39:18.407305449 +0200
extension = m[2].downcase
@known_types ||= Hash.new do |h, ext|
type = EXTENSIONS[ext]
type ||= MIME::Types.find {|type| type.extensions.include?(ext)}.to_s.presence
type ||= MIME::Types.type_for(ext).first.to_s.presence
h[ext] = type
end
@known_types[extension]
    (1-1/1)