From 870eefb18469999f4aea728633269013190be940 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 28 Mar 2023 14:07:52 -0400 Subject: [PATCH] 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` --- CTFd/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/config.py b/CTFd/config.py index 52d37251..d2e7222f 100644 --- a/CTFd/config.py +++ b/CTFd/config.py @@ -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)