5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-11-14 14:01:55 +01:00

Fixed bug

This commit is contained in:
Timo Ley 2020-06-30 17:37:39 +02:00
parent 33e7df5dff
commit 0c4000cf7c

View file

@ -83,10 +83,10 @@
//UPLOAD //UPLOAD
if (isset($_POST['submit'])) { if (isset($_POST['submit'])) {
include('uploadOK.php'); include('uploadOK.php');
$home_dir = "images/" . md5($tokencookie) . "/"; if(empty($tokencookie)) {
if ($home_dir == "images//") { $tokencookie = $_POST['token'];
$home_dir = "images/" . md5($_POST['token']) . "/";
} }
$home_dir = "images/" . md5($tokencookie) . "/";
mkdir($home_dir); mkdir($home_dir);
$resultMaxUpl = mysqli_query($con, "select * from token WHERE token='$tokencookie' OR token='$tokenpost'") or die('Error In Session'); $resultMaxUpl = mysqli_query($con, "select * from token WHERE token='$tokencookie' OR token='$tokenpost'") or die('Error In Session');