die louder if CSRF is missing for admin actions

This commit is contained in:
Shish 2024-01-16 10:55:03 +00:00
parent 7f20b17a59
commit ea1867f92d

View file

@ -58,6 +58,8 @@ class AdminPage extends Extension
shm_set_timeout(null);
$database->set_timeout(null);
send_event($aae);
} else {
throw new SCoreException("Invalid CSRF token");
}
if ($aae->redirect) {