Fix: No mails w/o attachment, after upload of wrong files

This commit is contained in:
Tobias Herre 2021-11-18 09:51:23 +01:00
parent 5fe39a1cbf
commit 147de59bac

View file

@ -36,11 +36,11 @@ foreach ($_FILES as $key=>$files){
file_put_contents("/tmp/log.txt", "file-$key-$i\n", FILE_APPEND | LOCK_EX);
file_put_contents("/tmp/log.txt", $files['name'][$i], FILE_APPEND | LOCK_EX);
}
$_SESSION['files'][$tmpname]['content']=file_get_contents($tmpname);
$_SESSION['files'][$tmpname]['row']=$_GET['row'];
}
}
}