summaryrefslogtreecommitdiffstats
path: root/modules-available/syslog/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2025-05-22 16:07:03 +0200
committerSimon Rettberg2025-05-22 16:07:03 +0200
commit19160ec62cec3b6e436590b16ebb2b329ef5d55b (patch)
treebdfc8a89829fde79133b839d4cb52a27c7b3e520 /modules-available/syslog/page.inc.php
parent[locationinfo] URLpanel: Browser accept-language and screen rotation (diff)
downloadslx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.gz
slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.xz
slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.zip
Add audit logging of POST actions
Diffstat (limited to 'modules-available/syslog/page.inc.php')
-rw-r--r--modules-available/syslog/page.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/syslog/page.inc.php b/modules-available/syslog/page.inc.php
index 401d9dd8..bbc12e92 100644
--- a/modules-available/syslog/page.inc.php
+++ b/modules-available/syslog/page.inc.php
@@ -17,7 +17,8 @@ class Page_SysLog extends Page
if (($days = Request::post('anondays', false, 'int')) !== false) {
User::assertPermission('configure-anonymization', NULL,'?do=syslog');
- if ($days < 0 || $days > 180) {
+ if ($days < 0 || $days > 366) {
+ Audit::overrideResponseCode(400);
Message::addError('anon-days-out-of-range', $days);
} else {
Property::set(self::PROP_ANON_DAYS, $days);