mirror of
https://github.com/itflow-org/itflow
synced 2026-07-27 10:47:14 +00:00
Updated validateCSRFToken to automatically grab and compare get or post csrf token no longer need to pass an argument to the function which fixed the issue if no hash was present
This commit is contained in:
@@ -206,7 +206,7 @@ function zipFolderStrict(string $folderPath, string $zipFilePath): void {
|
||||
|
||||
if (isset($_GET['download_backup'])) {
|
||||
|
||||
validateCSRFToken($_GET['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
$timestamp = date('YmdHis');
|
||||
$baseName = "itflow_{$timestamp}";
|
||||
@@ -302,7 +302,7 @@ if (isset($_GET['download_backup'])) {
|
||||
|
||||
if (isset($_POST['backup_master_key'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
validateCSRFToken();
|
||||
|
||||
$password = $_POST['password'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user