mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
Don't allow empty strings in the protocol check.
This commit is contained in:
@@ -50,7 +50,7 @@ module Gitlab
|
||||
end
|
||||
|
||||
def check(cmd, changes = nil)
|
||||
raise 'Access denied due to unspecified Git access protocol' unless protocol
|
||||
raise 'Access denied due to unspecified Git access protocol' unless protocol.present?
|
||||
|
||||
return build_status_object(false, "Git access over #{protocol.upcase} is not allowed") unless protocol_allowed?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user