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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Strip whitespace in URL validator
Oliver Günther7af51312fd83
diff --git a/app/validators/url_validator.rb b/app/validators/url_validator.rbindex 812927a7166..939f6132387 100644--- a/app/validators/url_validator.rb+++ b/app/validators/url_validator.rb@@ -13,8 +13,8 @@ class UrlValidator < ActiveModel::EachValidatorenddef parse(value)- url = URI.parse(value)- rescue StandardError => e+ URI.parse(value.to_s.strip)+ rescue StandardErrornilend