Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#50801] Replace uri.hostname with uri.host in NextcloudCompatibleHostValidator

Dominic Bräunlein4080961b951c
diff --git a/modules/storages/app/validator/nextcloud_compatible_host_validator.rb b/modules/storages/app/validator/nextcloud_compatible_host_validator.rb
index 9c0a72c7dc3..03612e3c4f8 100644
--- a/modules/storages/app/validator/nextcloud_compatible_host_validator.rb
+++ b/modules/storages/app/validator/nextcloud_compatible_host_validator.rb
@@ -124,7 +124,7 @@ class NextcloudCompatibleHostValidator < ActiveModel::EachValidator
}
begin
- Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
+ Net::HTTP.start(uri.host, uri.port, req_options) do |http|
http.request(request)
end
rescue StandardError => e