Skip to content

Commit 6c16a8b

Browse files
authored
Merge pull request #23 from 418sec/1-other-postgresql-metrics
Security Fix for Arbitrary Code Execution - huntr.dev
2 parents 418e4ad + 4f41206 commit 6c16a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresql_metrics/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ def find_and_parse_config(config_path):
113113
current_path = os.path.join(config_dir, config_filename)
114114
if os.path.isfile(current_path):
115115
with open(current_path, 'r') as f:
116-
read_config_dict = yaml.load(f)
116+
read_config_dict = yaml.safe_load(f)
117117
config_dict = merge_configs(read_config_dict, config_dict)
118118
return config_dict

0 commit comments

Comments
 (0)