From dd4f55ca0a181d2e097246b3a3a9c2db1f253631 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Tue, 7 Oct 2025 14:40:15 +0200 Subject: [PATCH] Fix cancel button --- htdocs/admin/security_headers_http.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/security_headers_http.php b/htdocs/admin/security_headers_http.php index 7c9247a596e..20227275967 100644 --- a/htdocs/admin/security_headers_http.php +++ b/htdocs/admin/security_headers_http.php @@ -45,6 +45,7 @@ if (!$user->admin) { } $action = GETPOST('action', 'aZ09'); +$cancel = GETPOST('cancel', 'aZ09'); $forceCSP = getDolGlobalString("MAIN_SECURITY_FORCECSP"); $selectarrayCSPDirectives = GetContentPolicyDirectives(); @@ -57,6 +58,10 @@ $error = 0; * Actions */ +if ($cancel) { + $action = ''; +} + $reg = array(); if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) { $code = $reg[1]; @@ -356,7 +361,7 @@ print ''; print '
'; print ''; -print ''; +print ''; print '
';