diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-06-07 17:12:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-07 17:12:47 -0500 |
commit | a753fbe8184132495030a7f2ada03c1ec3ceef60 (patch) | |
tree | 0fa391324cada9393f51368ecfc9237edec85344 | |
parent | e934e5104d386ebeb0768eaab8188c8af24093ea (diff) | |
parent | 97e41015b3e7439e13ddd4ffd503a8ae1b6f3e4a (diff) | |
download | nextcloud-server-a753fbe8184132495030a7f2ada03c1ec3ceef60.tar.gz nextcloud-server-a753fbe8184132495030a7f2ada03c1ec3ceef60.zip |
Merge pull request #5185 from nextcloud/error-spam-in-log
Don't try to generate logs for chunking paths
-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, |