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 '