From 01a56069d8affbeab2002670197e46cd2f6c793d Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Thu, 12 Oct 2023 09:34:44 +0200 Subject: [PATCH] add hint to user input --- htdocs/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/index.php b/htdocs/index.php index c1997e5..73f3efd 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -92,6 +92,14 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { } if ($mode === "NO_AUTH") { $fileName = "backups.json"; +} elseif (!isset($_GET["user"])) { + header("HTTP/1.0 404 Not Found"); ?> +
+ no user specified + + +
+