Skip to content
Snippets Groups Projects
Commit 5b52a4ed authored by Nikita Hovratov's avatar Nikita Hovratov
Browse files

[BUGFIX] Ignore csp.yaml file when saving site configuration

The csp.yaml shouldn't be taken into account when merging current and
new site configuration via the GUI.

Resolves: #101626
Releases: main, 12.4
Change-Id: Ib08b7707cfb43733985b0c7aa5bf12bcc5fa603c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80468


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarStefan B�rk <stefan@buerk.tech>
Reviewed-by: default avatarJ�rg B�sche <typo3@joergboesche.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarStefan B�rk <stefan@buerk.tech>
parent bbf46cd3
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ class SiteConfiguration implements SingletonInterface
/**
* Resolve all site objects which have been found in the filesystem containing settings only from the `config.yaml`
* file ignoring values from the `settings.yaml` file.
* file ignoring values from the `settings.yaml` and `csp.yaml` file.
*
* @return Site[]
* @internal Not part of public API. Used as intermediate solution until settings are handled by a dedicated GUI.
......@@ -167,7 +167,6 @@ class SiteConfiguration implements SingletonInterface
// cast $identifier to string, as the identifier can potentially only consist of (int) digit numbers
$identifier = (string)$identifier;
$siteSettings = new SiteSettings($configuration['settings'] ?? []);
$configuration['contentSecurityPolicies'] = $this->getContentSecurityPolicies($identifier);
$rootPageId = (int)($configuration['rootPageId'] ?? 0);
if ($rootPageId > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment