From c7c0392a0401f71802a1120b3244fac1e2ca1c4b Mon Sep 17 00:00:00 2001 From: tiagonbotelho Date: Tue, 12 Jul 2016 12:48:24 +0100 Subject: test for nil params :file_name --- app/controllers/projects/blob_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb index ac1141b8613..0120ad8e058 100644 --- a/app/controllers/projects/blob_controller.rb +++ b/app/controllers/projects/blob_controller.rb @@ -38,7 +38,7 @@ class Projects::BlobController < Projects::ApplicationController end def update - unless params[:file_name].empty? + unless params[:file_name].nil? || params[:file_name].empty? @previous_path = @path @path = params[:file_name] @commit_params[:file_path] = @path -- cgit v1.2.1