From d1eb2b674512697202a6ac25fe62d3bd442f2eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Rie=C3=9F?= Date: Tue, 17 Mar 2026 07:45:14 +0100 Subject: [PATCH] Store populated values in hidden form elements --- application/forms/Config/General/CspConfigForm.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/forms/Config/General/CspConfigForm.php b/application/forms/Config/General/CspConfigForm.php index f98498794..2ba477d95 100644 --- a/application/forms/Config/General/CspConfigForm.php +++ b/application/forms/Config/General/CspConfigForm.php @@ -43,7 +43,10 @@ class CspConfigForm extends CompatForm ], ); - if ($this->getValue('use_strict_csp') === 'y') { + if ($this->getValue('use_strict_csp') !== 'y') { + $this->addElement('hidden', 'use_custom_csp'); + $this->addElement('hidden', 'custom_csp'); + } else { $this->addElement( 'checkbox', 'use_custom_csp',