From a3b6210ac043e2fdeb20d48d464e3a1466f388b4 Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 14 Feb 2021 10:00:06 +0200 Subject: destroys sessions more propperly now --- php/upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'php/upload.php') diff --git a/php/upload.php b/php/upload.php index 9739744..97fbf2f 100644 --- a/php/upload.php +++ b/php/upload.php @@ -2,9 +2,10 @@ require_once "database.php"; require_once "configuration.php"; require_once "file_type_recogniser.php"; +require_once "user.php"; require_once "node.php"; - session_start(); + if (!isset( $_POST["filename"]) || !isset($_FILES["the_file"]) || !isset($_POST['parent_directory'])) { error_log("someone tried to upload something impropperly"); -- cgit v1.2.3