Fix bug in crsf token handling
phpcs-errors:238 phpunit-status:successful
This commit is contained in:
@ -6,6 +6,10 @@ $target = "csv/";
|
||||
$target .= basename($_FILES['uploaded']['name']);
|
||||
$targetpart = basename($_FILES['uploaded']['name']);
|
||||
|
||||
if (session_status() != PHP_SESSION_ACTIVE) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
if (validateAntiCsrfToken() === false) {
|
||||
throw new WrongCsrfTokenException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user