From 0bbbdabea4a74d3bbbb07eb607e094a28de2f764 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 27 Aug 2025 01:31:34 +0200 Subject: [PATCH] Debug v23 --- htdocs/admin/security_headers_http.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/security_headers_http.php b/htdocs/admin/security_headers_http.php index 7d4cbb1fc79..8b67c94c055 100644 --- a/htdocs/admin/security_headers_http.php +++ b/htdocs/admin/security_headers_http.php @@ -136,7 +136,7 @@ if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) { } header("Location: ".$_SERVER["PHP_SELF"]); - exit(); + exit; } elseif ($action == "updateform" && GETPOST("btn_MAIN_SECURITY_FORCECSP")) { $directivecsp = GETPOST("select_identifier_MAIN_SECURITY_FORCECSP"); $sourcecsp = GETPOST("select_source_MAIN_SECURITY_FORCECSP"); @@ -224,8 +224,8 @@ if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) { $db->commit(); setEventMessages($langs->trans("Saved"), null, 'mesgs'); - header("Location: ") - exit(); + header("Location: ".$_SERVER["PHP_SELF"]); + exit; } else { $db->rollback(); setEventMessages($langs->trans("ErrorSavingChanges"), null, 'errors');