Skip to content

Commit

Permalink
rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Apr 27, 2021
1 parent 4e44614 commit 64681b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/file_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def fix_filename
# if the filename cannot be safely unencoded, look for a % in the original filename
fname = params_u(:file)
return fname if fname.valid_encoding?
fname = Encoder.urlunencode(params[:file].gsub('%', '%25'))
fname

Encoder.urlunencode(params[:file].gsub('%', '%25'))
end

def fix_params
Expand Down

0 comments on commit 64681b9

Please sign in to comment.