summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Szabo <roger.szabo@web.de>2017-03-09 18:31:25 +0800
committerRoger Szabo <roger.szabo@web.de>2017-03-09 18:31:25 +0800
commit06bcb220b54dc289ed0776f625dab674b69bc618 (patch)
tree6d445f1c8ec0c652b7c5853560188c287848b77a
parenta4aea572e416d0a2e5bb3c9b6548ed13b4c90b4f (diff)
downloadnextcloud-server-06bcb220b54dc289ed0776f625dab674b69bc618.tar.gz
nextcloud-server-06bcb220b54dc289ed0776f625dab674b69bc618.zip
audit log the user-agent
Signed-off-by: Roger Szabo <roger.szabo@web.de>
-rw-r--r--apps/admin_audit/lib/actions/action.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/actions/action.php b/apps/admin_audit/lib/actions/action.php
index 2d036675869..e83c33a68ca 100644
--- a/apps/admin_audit/lib/actions/action.php
+++ b/apps/admin_audit/lib/actions/action.php
@@ -74,6 +74,10 @@ class Action {
}
$replaceArray[] = $params[$element];
}
+
+ //log the User-Agent
+ $text = $text.' with User-Agent: "%s"';
+ $replaceArray[] = $_SERVER['HTTP_USER_AGENT'];
$this->logger->info(
vsprintf(