diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-31 11:10:42 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-16 10:42:07 +0200 |
commit | 9c2c42c7cc98b01a5451daeecf38b69c1d892cf4 (patch) | |
tree | 41edf999ab96808ed63a0d44255d91cca1c0b0ab /apps/admin_audit | |
parent | 3cb59ac602262eaa031bc7532a2453c207636b12 (diff) | |
download | nextcloud-server-9c2c42c7cc98b01a5451daeecf38b69c1d892cf4.tar.gz nextcloud-server-9c2c42c7cc98b01a5451daeecf38b69c1d892cf4.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.php | 8 |
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, |