Make sure we didn't blow up if URI is invalid
This commit is contained in:
parent
e9060da6f0
commit
87328fa978
|
@ -64,6 +64,8 @@ module Gitlab
|
|||
url.password = password if password.present?
|
||||
url.user = user if user.present?
|
||||
url
|
||||
rescue Addressable::URI::InvalidURIError
|
||||
Addressable::URI.new
|
||||
end
|
||||
|
||||
def generate_full_url
|
||||
|
|
Loading…
Reference in New Issue