Skip to content

Commit

Permalink
refactor: replace YAML.load_file with YAML.safe_load
Browse files Browse the repository at this point in the history
replace YAML.load_file with YAML.safe_load for just in case.
  • Loading branch information
ninoseki committed Nov 25, 2018
1 parent a1f959d commit 495d414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ayashige/domain.rb
Expand Up @@ -59,7 +59,7 @@ def suspicious_words_score
end

def suspicious
@suspicious ||= YAML.load_file File.expand_path("./config/suspicious.yml", __dir__)
@suspicious ||= YAML.safe_load File.read(File.expand_path("./config/suspicious.yml", __dir__))
end

def suspicious_keywords
Expand Down

0 comments on commit 495d414

Please sign in to comment.