diff --git a/app/models/http_proxy.rb b/app/models/http_proxy.rb index 1cb27e8c3136..8302a47bb0b8 100644 --- a/app/models/http_proxy.rb +++ b/app/models/http_proxy.rb @@ -34,6 +34,7 @@ class HttpProxy < ApplicationRecord def full_url uri = URI(url) + fail URI::InvalidURIError unless uri.is_a?(URI::HTTP) if username.present? uri.user = CGI.escape(username) uri.password = CGI.escape(password) if password