mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
use yaml.safe_load for parsing metadata
This commit is contained in:
parent
1beb7f0432
commit
aee84fdc73
1 changed files with 1 additions and 1 deletions
|
|
@ -1021,7 +1021,7 @@ def parse_json_metadata(mf, app):
|
||||||
|
|
||||||
|
|
||||||
def parse_yaml_metadata(mf, app):
|
def parse_yaml_metadata(mf, app):
|
||||||
yamldata = yaml.load(mf, Loader=YamlLoader)
|
yamldata = yaml.safe_load(mf)
|
||||||
if yamldata:
|
if yamldata:
|
||||||
app.update(yamldata)
|
app.update(yamldata)
|
||||||
return app
|
return app
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue