Add anti-CSRF token
phpcs-errors:238 phpunit-status:successful
This commit is contained in:
@ -3,8 +3,12 @@ declare(strict_types = 1);
|
||||
require_once __DIR__ . "/functions/functions.php";
|
||||
|
||||
$target = "csv/";
|
||||
$target .= basename( $_FILES['uploaded']['name']);
|
||||
$targetpart = basename( $_FILES['uploaded']['name']);
|
||||
$target .= basename($_FILES['uploaded']['name']);
|
||||
$targetpart = basename($_FILES['uploaded']['name']);
|
||||
|
||||
if (validateAntiCsrfToken() === false) {
|
||||
throw new WrongCsrfTokenException();
|
||||
}
|
||||
|
||||
//This is our size condition
|
||||
if ($uploaded_size > 40000000) {
|
||||
|
Reference in New Issue
Block a user