Skip to content

Commit

Permalink
SEC: YAML safe Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
psalvy committed Oct 9, 2019
1 parent 1b93978 commit 26b238c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion work/detfl/detfl_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

def read_config(yaml_file):
with open(yaml_file, 'rb') as f:
conf = yaml.load(f.read()) # load the config file
conf = yaml.load(f.read(), Loader=yaml.SafeLoader) # load the config file
return conf


Expand Down

0 comments on commit 26b238c

Please sign in to comment.