mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] use more secure yaml.safe_load
This commit is contained in:
parent
31482e7d31
commit
6cceddf70c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ subprocess.check_call(cmd, shell=True)
|
|||
with open(ACTIONSMAP_FILE, 'r') as stream:
|
||||
|
||||
# Getting the dictionary containning what actions are possible per domain
|
||||
OPTION_TREE = yaml.load(stream)
|
||||
OPTION_TREE = yaml.safe_load(stream)
|
||||
DOMAINS = [str for str in OPTION_TREE.keys() if not str.startswith('_')]
|
||||
DOMAINS_STR = '"{}"'.format(' '.join(DOMAINS))
|
||||
ACTIONS_DICT = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue