summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 12:48:24 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 15:55:16 +0100
commit98c0eb461596e2b390ea5d43fc2f5f5284d1d0c0 (patch)
treeaa47abb64edf1ededb3f7051aac77fdfb8a525ab /app/controllers/projects
parent893f3f28562c45da796ac5674600fd368bb3dbdf (diff)
downloadgitlab-ce-98c0eb461596e2b390ea5d43fc2f5f5284d1d0c0.tar.gz
test for nil params :file_name
Diffstat (limited to 'app/controllers/projects')
-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