Skip to content

Commit

Permalink
Use safe_load [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 3, 2023
1 parent 731b2e3 commit 64d0b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pghero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def file_config

config_file_exists = File.exist?(path)

config = YAML.load(ERB.new(File.read(path)).result) if config_file_exists
config = YAML.safe_load(ERB.new(File.read(path)).result) if config_file_exists
config ||= {}

@file_config =
Expand Down

0 comments on commit 64d0b00

Please sign in to comment.