From 64681b9075f5db93867e540892339a3048ea3191 Mon Sep 17 00:00:00 2001 From: Terry Brady Date: Mon, 26 Apr 2021 17:35:55 -0700 Subject: [PATCH] rubocop fix --- app/controllers/file_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/file_controller.rb b/app/controllers/file_controller.rb index de8a5da71..4d5618f6f 100644 --- a/app/controllers/file_controller.rb +++ b/app/controllers/file_controller.rb @@ -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