Skip to content

Commit 3b91675

Browse files
committed
config: use safe yaml loader
1 parent 7da2b89 commit 3b91675

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastapi_framework/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __new__(mcs, name, bases, dct):
7777
if config_type.lower() == "yaml":
7878
import yaml
7979

80-
config = yaml.load(data, Loader=yaml.CLoader)
80+
config = yaml.safe_load(data)
8181
elif config_type.lower() == "json":
8282
import json
8383

0 commit comments

Comments
 (0)