misc: always use normal config parser, with no interpolation (#88571)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-03-23 11:19:20 +01:00
parent e0857ce653
commit 1dcc430503
2 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ class Command(TenantCommand):
def configure_site_options(self, current_service, pub, ignore_timestamp=False):
# configure site-options.cfg
config = configparser.RawConfigParser()
config = configparser.ConfigParser(interpolation=None)
site_options_filepath = os.path.join(pub.app_dir, 'site-options.cfg')
if os.path.exists(site_options_filepath):
config.read(site_options_filepath)

View File

@ -421,7 +421,7 @@ class QommonPublisher(Publisher):
return string
def load_site_options(self):
self.site_options = configparser.ConfigParser()
self.site_options = configparser.ConfigParser(interpolation=None)
site_options_filename = os.path.join(self.app_dir, 'site-options.cfg')
if not os.path.exists(site_options_filename):
return