From 97e41015b3e7439e13ddd4ffd503a8ae1b6f3e4a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 31 May 2017 11:10:42 +0200 Subject: Don't try to generate logs for chunking paths Signed-off-by: Joas Schilling --- apps/admin_audit/lib/actions/files.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/admin_audit') 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, -- cgit v1.2.3