Use yaml.safe_load() rather than the unsafe yaml.load()
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
4a9d30a9dd
commit
71b7245439
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ def _get_override_yaml(project, session):
|
|||
print('Querying {0}'.format(pagure_override_url))
|
||||
override_rv = session.get(pagure_override_url, timeout=30)
|
||||
if override_rv.status_code == 200:
|
||||
override_yaml = yaml.load(override_rv.text)
|
||||
override_yaml = yaml.safe_load(override_rv.text)
|
||||
return override_yaml.get('bugzilla_contact', {})
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue