fix security issue
This commit is contained in:
parent
142b090184
commit
948238a689
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class WrappedSettings:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.settings_dir = os.path.join(os.path.dirname(__file__), 'config.yml')
|
self.settings_dir = os.path.join(os.path.dirname(__file__), 'config.yml')
|
||||||
settings = open(self.settings_dir)
|
settings = open(self.settings_dir)
|
||||||
self.settings = yaml.load(settings)
|
self.settings = yaml.safe_load(settings)
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
value = self.settings[name]
|
value = self.settings[name]
|
||||||
|
|
Reference in a new issue