]> 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>
Mon, 1 Jul 2013 15:00:17 +0000 (17:00 +0200)
lib/files/view.php

index 300fba6cd082208f96afcd511813c03850a6bac7..60c3fc5dd0b23f82ee33aec6d3e6b3e430acd099 100644 (file)
@@ -678,7 +678,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(