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

replace removed URI.escape method

ulferts2097d0205822
diff --git a/app/services/scm/checkout_instructions_service.rb b/app/services/scm/checkout_instructions_service.rb
index 698150f8f11..4beb063926e 100644
--- a/app/services/scm/checkout_instructions_service.rb
+++ b/app/services/scm/checkout_instructions_service.rb
@@ -45,7 +45,7 @@ class SCM::CheckoutInstructionsService
def checkout_url(with_path = false)
repository.scm.checkout_url(repository,
checkout_base_url,
- with_path ? URI.escape(@path) : nil)
+ with_path ? URI.encode_www_form_component(@path) : nil)
end
##