diff options
author | Roger Szabo <roger.szabo@web.de> | 2017-03-09 18:31:25 +0800 |
---|---|---|
committer | Roger Szabo <roger.szabo@web.de> | 2017-03-09 18:31:25 +0800 |
commit | 06bcb220b54dc289ed0776f625dab674b69bc618 (patch) | |
tree | 6d445f1c8ec0c652b7c5853560188c287848b77a | |
parent | a4aea572e416d0a2e5bb3c9b6548ed13b4c90b4f (diff) | |
download | nextcloud-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.php | 4 |
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( |