From 0c4000cf7c8d25ac4ee1012f45c4c8e05cd4c944 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Tue, 30 Jun 2020 17:37:39 +0200 Subject: [PATCH] Fixed bug --- website/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/index.php b/website/index.php index 5318cd3..08bec6e 100644 --- a/website/index.php +++ b/website/index.php @@ -83,10 +83,10 @@ //UPLOAD if (isset($_POST['submit'])) { include('uploadOK.php'); + if(empty($tokencookie)) { + $tokencookie = $_POST['token']; + } $home_dir = "images/" . md5($tokencookie) . "/"; - if ($home_dir == "images//") { - $home_dir = "images/" . md5($_POST['token']) . "/"; - } mkdir($home_dir); $resultMaxUpl = mysqli_query($con, "select * from token WHERE token='$tokencookie' OR token='$tokenpost'") or die('Error In Session'); @@ -154,4 +154,4 @@ - \ No newline at end of file +