diff options
Diffstat (limited to 'php/upload.php')
-rw-r--r-- | php/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/php/upload.php b/php/upload.php index bd72b6b..42a8bf6 100644 --- a/php/upload.php +++ b/php/upload.php @@ -1,8 +1,8 @@ <?php -require_once "database.php" -require_once "configuration.php" +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"); |