From e10f77e219eaed7972d440fd8305d78b68728872 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Fri, 2 Dec 2022 16:17:59 +0100 Subject: [PATCH] fix missing id parameter after security question when deleting a ssl-certificate Signed-off-by: Michael Kaufmann --- ssl_certificates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl_certificates.php b/ssl_certificates.php index 5d22e71a..4469e240 100644 --- a/ssl_certificates.php +++ b/ssl_certificates.php @@ -29,7 +29,7 @@ $success_message = ""; // do the delete and then just show a success-message and the certificates list again if ($action == 'delete') { - $id = isset($_GET['id']) ? (int) $_GET['id'] : 0; + $id = isset($_POST['id']) ? (int) $_POST['id'] : (isset($_GET['id']) ? (int) $_GET['id'] : 0); if ($id > 0) { if (isset($_POST['send']) && $_POST['send'] == 'send') { try {