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
60 60
        extension = m[2].downcase
61 61
        @known_types ||= Hash.new do |h, ext|
62 62
          type = EXTENSIONS[ext]
63
          type ||= MIME::Types.find {|type| type.extensions.include?(ext)}.to_s.presence
63
          type ||= MIME::Types.type_for(ext).first.to_s.presence
64 64
          h[ext] = type
65 65
        end
66 66
        @known_types[extension]
    (1-1/1)