From: Björn Schießle Date: Mon, 1 Jul 2013 15:00:17 +0000 (+0200) Subject: don't run hooks for .part files X-Git-Tag: v6.0.0alpha2~536 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=690323092ec23ce3c04591963d268bf14f0c411b;p=nextcloud-server.git don't run hooks for .part files --- diff --git a/lib/files/view.php b/lib/files/view.php index f62b84d27aa..c9727fe4984 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -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(