summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-06-07 17:12:47 -0500
committerGitHub <noreply@github.com>2017-06-07 17:12:47 -0500
commita753fbe8184132495030a7f2ada03c1ec3ceef60 (patch)
tree0fa391324cada9393f51368ecfc9237edec85344
parente934e5104d386ebeb0768eaab8188c8af24093ea (diff)
parent97e41015b3e7439e13ddd4ffd503a8ae1b6f3e4a (diff)
downloadnextcloud-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.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,