Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit b6f19b0

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #5 from staticdev/yaml-security
Fix yaml.load
2 parents 9199f26 + 55cf989 commit b6f19b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def load_configs(self) -> Config:
1818
if os.path.exists(os.path.join(self.CONFIG_FOLDER, self.CONFIG_FILE)):
1919
print("Loading previous configs\n")
2020
with open(os.path.join(self.CONFIG_FOLDER, self.CONFIG_FILE)) as config_file:
21-
data = yaml.load(config_file)
21+
data = yaml.load(config_file, Loader=yaml.FullLoader)
2222
return Config(**data)
2323
os.system(f"mkdir -p {self.CONFIG_FOLDER}")
2424
return Config()

0 commit comments

Comments
 (0)