mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
Add Paramètres page: consolidate maintenance + account settings
This commit is contained in:
1 parent
ba135f0cb5
commit
603af07b68
8 files changed
+262
-35
No files matched your search
@@ -24,5 +24,10 @@ if ($action === 'enable_maintenance') {
|
||||
App::flash('error', "Action inconnue.");
|
||||
}
|
||||
|
||||
header('Location: /admin/');
|
||||
$redirect = isset($_POST['redirect']) ? $_POST['redirect'] : '/admin/';
|
||||
// Allow only internal admin redirects for safety
|
||||
if (!preg_match('#^/admin/#', $redirect)) {
|
||||
$redirect = '/admin/';
|
||||
}
|
||||
header('Location: ' . $redirect);
|
||||
exit();
|
||||
Reference in new issue
Block a user