From b20d2a1a13eb41a0d36c14d808cd623dd42d391d Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sun, 21 Jan 2024 16:56:36 +0100 Subject: [PATCH] Update add_entry.php --- src/server/cyberhex-code/api/php/log/add_entry.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/cyberhex-code/api/php/log/add_entry.php b/src/server/cyberhex-code/api/php/log/add_entry.php index 521e98b..587b1bc 100644 --- a/src/server/cyberhex-code/api/php/log/add_entry.php +++ b/src/server/cyberhex-code/api/php/log/add_entry.php @@ -4,6 +4,8 @@ //add the entry to the log db //this page has no gui, it may return ok or error +if(!isset($_GET["loglevel"]) or !isset($_GET["logtext"]) or !isset($_GET["machine_id"])) + echo("syn_err"); $loglevel=htmlspecialchars($_GET["loglevel"]); $logtext=htmlspecialchars($_GET["logtext"]); $machine_id=htmlspecialchars($_GET["machine_id"]);