Skip to content

Commit

Permalink
safe_load YAML with (:Symbols white-listed)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthutchinson committed Jan 19, 2017
1 parent f4b48c6 commit 0ee95dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lolcommits/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(attributes = {})

def read_configuration
return unless File.exist?(configuration_file)
YAML.load(File.open(configuration_file))
YAML.safe_load(File.open(configuration_file), [Symbol])
end

def configuration_file
Expand Down

0 comments on commit 0ee95dc

Please sign in to comment.