From 52e1f82a3952766ed8e5706090eec6fe70efeab3 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 12:44:12 +0200 Subject: ; error --- php/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'php/upload.php') diff --git a/php/upload.php b/php/upload.php index bd72b6b..ee4d8fe 100644 --- a/php/upload.php +++ b/php/upload.php @@ -1,6 +1,6 @@ Date: Fri, 12 Feb 2021 12:48:13 +0200 Subject: ] error --- php/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php/upload.php') diff --git a/php/upload.php b/php/upload.php index ee4d8fe..42a8bf6 100644 --- a/php/upload.php +++ b/php/upload.php @@ -2,7 +2,7 @@ require_once "database.php"; require_once "configuration.php"; -if (!isset( $_POST["filename") || !isset($_POST["the_file"]) +if (!isset( $_POST["filename"]) || !isset($_POST["the_file"])) { http_response_code(400); error_log("someone tried to upload something impropperly"); -- cgit v1.2.3