From 527301b44e44e994c89ba4db47a49e37eaef4d1b Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 12:48:13 +0200 Subject: ] error --- php/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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