1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

CSRF detection text - updated #84

This commit is contained in:
Awilum
2013-01-09 22:28:52 +02:00
parent 5db04d5007
commit 9a864ef063

View File

@@ -39,7 +39,7 @@ class BackupAdmin extends Backend
$zip->archive($backups_path . DS . Date::format(time(), "Y-m-d-H-i-s").'.zip');
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
// Delete backup
@@ -51,7 +51,7 @@ class BackupAdmin extends Backend
File::delete($backups_path . DS . Request::get('delete_file'));
Request::redirect(Option::get('siteurl').'admin/index.php?id=backup');
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
// Download backup
@@ -59,7 +59,7 @@ class BackupAdmin extends Backend
if (Request::get('download')) {
if (Security::check(Request::get('token'))) {
File::download($backups_path . DS . Request::get('download'));
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
// Get backup list