mirror of
https://github.com/moepman/acertmgr.git
synced 2025-01-01 05:31:51 +01:00
configuration: use yaml.safe_load instead of load
This commit is contained in:
parent
67c83d8fce
commit
d6f8f29e82
@ -198,7 +198,7 @@ def load():
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
import yaml
|
import yaml
|
||||||
config_fd.seek(0)
|
config_fd.seek(0)
|
||||||
globalconfig = yaml.load(config_fd)
|
globalconfig = yaml.safe_load(config_fd)
|
||||||
|
|
||||||
# create work directory if it does not exist
|
# create work directory if it does not exist
|
||||||
if not os.path.isdir(work_dir):
|
if not os.path.isdir(work_dir):
|
||||||
@ -218,7 +218,7 @@ def load():
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
import yaml
|
import yaml
|
||||||
config_fd.seek(0)
|
config_fd.seek(0)
|
||||||
for entry in yaml.load(config_fd).items():
|
for entry in yaml.safe_load(config_fd).items():
|
||||||
config.append(parse_config_entry(entry, globalconfig, work_dir))
|
config.append(parse_config_entry(entry, globalconfig, work_dir))
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user