1
Fork 0

fix security issue

This commit is contained in:
Jake Howard 2016-10-02 12:43:45 +01:00
parent 142b090184
commit 948238a689
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -16,7 +16,7 @@ class WrappedSettings:
def __init__(self):
self.settings_dir = os.path.join(os.path.dirname(__file__), 'config.yml')
settings = open(self.settings_dir)
self.settings = yaml.load(settings)
self.settings = yaml.safe_load(settings)
def __getattr__(self, name):
value = self.settings[name]