mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
feature: csrf protection
This commit is contained in:
@@ -16,6 +16,8 @@ if(!admin()) {
|
||||
die('Access denied.');
|
||||
}
|
||||
|
||||
csrfProtect();
|
||||
|
||||
if (!isset($_REQUEST['plugin'])) {
|
||||
http_response_code(500);
|
||||
die('Please enter plugin name.');
|
||||
|
Reference in New Issue
Block a user