diff options
| author | Simon Rettberg | 2025-05-22 16:07:03 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-05-22 16:07:03 +0200 |
| commit | 19160ec62cec3b6e436590b16ebb2b329ef5d55b (patch) | |
| tree | bdfc8a89829fde79133b839d4cb52a27c7b3e520 /modules-available/statistics/page.inc.php | |
| parent | [locationinfo] URLpanel: Browser accept-language and screen rotation (diff) | |
| download | slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.gz slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.xz slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.zip | |
Add audit logging of POST actions
Diffstat (limited to 'modules-available/statistics/page.inc.php')
| -rw-r--r-- | modules-available/statistics/page.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index 3a938ff9..0090ad23 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -67,7 +67,7 @@ class Page_Statistics extends Page array('uuid' => $uuid)); if ($res === false) { Message::addError('unknown-machine', $uuid); - Util::redirect('?do=statistics'); + Util::redirect('?do=statistics', 404); } User::assertPermission("machine.note.edit", (int)$res['locationid']); $text = Request::post('content', null, 'string'); @@ -84,7 +84,7 @@ class Page_Statistics extends Page $this->deleteMachines(true); } elseif ($action === 'delmachines') { $this->deleteMachines(false); - Util::redirect('?do=statistics', true); + Util::redirect('?do=statistics', null, true); } elseif ($action === 'rebootmachines') { $this->rebootControl(true); } elseif ($action === 'shutdownmachines') { |
