Commit 87328fa9 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Make sure we didn't blow up if URI is invalid

parent e9060da6
......@@ -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
......
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