diff --git a/lib/redmine/configuration.rb b/lib/redmine/configuration.rb index 09df60d60..051ed7759 100644 --- a/lib/redmine/configuration.rb +++ b/lib/redmine/configuration.rb @@ -82,7 +82,7 @@ module Redmine def load_from_yaml(filename, env) yaml = nil begin - yaml = YAML::load_file(filename) + yaml = YAML::load(ERB.new(File.read(filename)).result) rescue ArgumentError $stderr.puts "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded." exit 1