mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-07 15:24:27 +01:00
Fix issue where we are double processing config.ini items (#2274)
* In some cases with numeric config items it appears that we can end up processing a string twice. This issue fixes it so that we only process the strings once at configparser load time with `before_get`
This commit is contained in:
@@ -263,4 +263,4 @@ class TestingConfig(ServerConfig):
|
||||
# Actually initialize ServerConfig to allow us to add more attributes on
|
||||
Config = ServerConfig()
|
||||
for k, v in config_ini.items("extra"):
|
||||
setattr(Config, k, process_string_var(v))
|
||||
setattr(Config, k, v)
|
||||
|
||||
Reference in New Issue
Block a user