提交 c7c0392a 编写于 作者: T tiagonbotelho

test for nil params :file_name

上级 3161d5d2
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册