mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 17:54:55 +02:00
feature: csrf protection
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Dashboard';
|
||||
|
||||
csrfProtect();
|
||||
|
||||
if (isset($_GET['clear_cache'])) {
|
||||
if (clearCache()) {
|
||||
success('Cache cleared.');
|
||||
|
Reference in New Issue
Block a user