Skip to content

Commit 5763024

Browse files
authored
Add safe yaml loader instead of default (#1030)
1 parent d24037c commit 5763024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/ooni_api_uploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def fill_jsonl(measurements: List[PP], jsonlf: PP) -> List[Dict]:
120120
msm = post.get("content", {})
121121
elif fmt == "yaml":
122122
try:
123-
msm = yaml.load(msm, Loader=yaml.CLoader)
123+
msm = yaml.safe_load(msm, Loader=yaml.CLoader)
124124
except Exception:
125125
pass
126126

0 commit comments

Comments
 (0)