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
Fix loading of plaintext.yml configuration file
Christophe Bliardd7b292dd44b3
diff --git a/config/initializers/plaintext.rb b/config/initializers/plaintext.rbindex 97b67f50fee..662b8523e72 100644--- a/config/initializers/plaintext.rb+++ b/config/initializers/plaintext.rb@@ -28,8 +28,7 @@# See COPYRIGHT and LICENSE files for more details.#++-file_name = Rails.root.join.to_s-if File.file?(file_name)- config_file = File.read(file_name)- Plaintext::Configuration.load(config_file)+config_file = Rails.root.join("config/plaintext.yml")+if config_file.file? && config_file.readable?+ Plaintext::Configuration.load(config_file.read)end