Skip to content

Commit e630f51

Browse files
committed
Fix MIME Rule
1 parent f90a662 commit e630f51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mini_defender/rules/mime_types.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def self.make(args)
2626

2727
def passes?(attribute, value, validator)
2828
@file = value.is_a?(ActionDispatch::Http::UploadedFile)
29-
@file && @types.include?(@file.content_type)
29+
@file && @types.include?(value.content_type)
3030
end
3131

3232
def message(attribute, value, validator)

lib/mini_defender/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module MiniDefender
4-
VERSION = "0.6.4"
4+
VERSION = "0.6.5"
55
end

0 commit comments

Comments
 (0)