]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't try to generate logs for chunking paths 5433/head
authorJoas Schilling <coding@schilljs.com>
Wed, 31 May 2017 09:10:42 +0000 (11:10 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 16 Jun 2017 08:42:07 +0000 (10:42 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/admin_audit/lib/actions/files.php

index d0a030d892a2ff1996c631e50ec9deb7fd38f045..e8d178e6070ba259216436eb72d1bff7d08c632c 100644 (file)
@@ -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,