Skip to content

Commit

Permalink
[#159818] Update LDAP authentication engine for ruby 3.1 (#3501)
Browse files Browse the repository at this point in the history
Update YAML.safe_load to use keyword args
  • Loading branch information
giladshanan authored May 10, 2023
1 parent ffe3ad3 commit 498a5c1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def self.encryption_method
def self.load_config_from_file
config_file_path = Rails.root.join("config", "ldap.yml")
parsed = ERB.new(File.read(config_file_path)).result
# safe_load(yaml, whitelist_classes, whitelist_symbols, allow_aliases)
yaml = YAML.safe_load(parsed, [], [], true) || {}
yaml = YAML.safe_load(parsed, permitted_classes: [], permitted_symbols: [], aliases: true) || {}
yaml.fetch(Rails.env, {})
end

Expand Down

0 comments on commit 498a5c1

Please sign in to comment.