diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-12 13:19:04 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-12 13:19:04 +0200 |
commit | 774fbfdbabf626ccaf768bf421f8b5ed5ce0172b (patch) | |
tree | c4da62ad8a3c0967e5e133a63b2cebaf88b937ae /php/upload.php | |
parent | 1ed8d0f9259ccb8d9adc0cf12267043ef351e5ec (diff) | |
parent | 527301b44e44e994c89ba4db47a49e37eaef4d1b (diff) | |
download | fileup-774fbfdbabf626ccaf768bf421f8b5ed5ce0172b.tar.gz |
Merge branch 'master' of https://github.com/alexvitkov/india
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"); |