]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't run hooks for .part files
authorBjörn Schießle <schiessle@owncloud.com>
Mon, 1 Jul 2013 15:00:17 +0000 (17:00 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 3 Jul 2013 08:11:50 +0000 (10:11 +0200)
lib/files/view.php

index f62b84d27aa1c5cfab4f6a72e2c0ad8d020f2dea..c9727fe49841a0e48f8475cf0494fa4640aa09f1 100644 (file)
@@ -688,7 +688,7 @@ class View {
        private function runHooks($hooks, $path, $post = false) {
                $prefix = ($post) ? 'post_' : '';
                $run = true;
-               if (Filesystem::$loaded and $this->fakeRoot == Filesystem::getRoot()) {
+               if (Filesystem::$loaded and $this->fakeRoot == Filesystem::getRoot() && !Cache\Scanner::isPartialFile($path)) {
                        foreach ($hooks as $hook) {
                                if ($hook != 'read') {
                                        \OC_Hook::emit(