From 690323092ec23ce3c04591963d268bf14f0c411b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Mon, 1 Jul 2013 17:00:17 +0200 Subject: [PATCH] don't run hooks for .part files --- lib/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.39.5