Add anti-CSRF token
phpcs-errors:238 phpunit-status:successful
This commit is contained in:
1 parent
5af012ba8b
commit
9d73a9b61e
3 files changed
+45
-6
No files matched your search
+6
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user