BigW Consortium Gitlab

Commit 98c0eb46 by tiagonbotelho

test for nil params :file_name

parent 893f3f28
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment