Add anti-CSRF token

phpcs-errors:238 phpunit-status:successful
This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2020-07-03 16:41:31 +02:00
1 parent 5af012ba8b
commit 9d73a9b61e
3 files changed
+45 -6

No files matched your search

+6 -2
View File
@@ -3,8 +3,12 @@
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) {