summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-31 11:10:42 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-31 11:10:42 +0200
commit97e41015b3e7439e13ddd4ffd503a8ae1b6f3e4a (patch)
tree8e60f1de2b8ae9e814d5d7ce759b3c7d44dcc767 /apps/admin_audit
parent5f9cc5a2d512923396572b4fdb6451b652261a18 (diff)
downloadnextcloud-server-97e41015b3e7439e13ddd4ffd503a8ae1b6f3e4a.tar.gz
nextcloud-server-97e41015b3e7439e13ddd4ffd503a8ae1b6f3e4a.zip
Don't try to generate logs for chunking paths
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/admin_audit')
-rw-r--r--apps/admin_audit/lib/actions/files.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/actions/files.php b/apps/admin_audit/lib/actions/files.php
index d0a030d892a..e8d178e6070 100644
--- a/apps/admin_audit/lib/actions/files.php
+++ b/apps/admin_audit/lib/actions/files.php
@@ -65,6 +65,10 @@ class Files extends Action {
* @param array $params
*/
public function create(array $params) {
+ if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
+ return;
+ }
+
$this->log(
'File created: "%s"',
$params,
@@ -96,6 +100,10 @@ class Files extends Action {
* @param array $params
*/
public function write(array $params) {
+ if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
+ return;
+ }
+
$this->log(
'File written to: "%s"',
$params,