diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -178,6 +178,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } } +// Auditing - log any post requests, but mask potential password fields. +// This REQUIRES naming those form fields accordingly +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + $mod = Page::getModule(); + Audit::run($mod ? $mod->getIdentifier() : strtolower($_POST['do'] ?? '???')); +} + // AJAX Stuff? Just do so. Otherwise, run preprocessing if (AJAX) { ob_start('ob_gzhandler'); |
