summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 12:48:24 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 12:48:24 +0100
commitc7c0392a0401f71802a1120b3244fac1e2ca1c4b (patch)
treed9f1b99e8976fabb52b8c7fd8d6896116449df0e
parent3161d5d29b22bfb446443bcc71926378b4b7f01d (diff)
downloadgitlab-ce-c7c0392a0401f71802a1120b3244fac1e2ca1c4b.tar.gz
test for nil params :file_name
-rw-r--r--app/controllers/projects/blob_controller.rb2
1 files changed, 1 insertions, 1 deletions
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