Sandbox: Fix configuration key for sandbox exceptions (#78317)

* Sandbox: Disable incident app inside the sandbox code

* Fix wrong key for default config and config key

* Rllback file
This commit is contained in:
Esteban Beltran 2023-11-17 11:35:09 +01:00 committed by GitHub
parent 7404ed66f6
commit 5a2127c221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1471,7 +1471,7 @@ func readSecuritySettings(iniFile *ini.File, cfg *Cfg) error {
cfg.CSPReportOnlyEnabled = security.Key("content_security_policy_report_only").MustBool(false)
cfg.CSPReportOnlyTemplate = security.Key("content_security_policy_report_only_template").MustString("")
disableFrontendSandboxForPlugins := security.Key("frontend_sandbox_disable_for_plugins").MustString("")
disableFrontendSandboxForPlugins := security.Key("disable_frontend_sandbox_for_plugins").MustString("")
for _, plug := range strings.Split(disableFrontendSandboxForPlugins, ",") {
plug = strings.TrimSpace(plug)
cfg.DisableFrontendSandboxForPlugins = append(cfg.DisableFrontendSandboxForPlugins, plug)