diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-07-01 17:00:17 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-03 10:11:50 +0200 |
commit | 690323092ec23ce3c04591963d268bf14f0c411b (patch) | |
tree | e7e7c0f068b7eae7eff33df1925c081fb4f1b452 /lib/files | |
parent | 04e4d9580f74a368d4e4c9bfb901d515d4b64ee2 (diff) | |
download | nextcloud-server-690323092ec23ce3c04591963d268bf14f0c411b.tar.gz nextcloud-server-690323092ec23ce3c04591963d268bf14f0c411b.zip |
don't run hooks for .part files
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
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( |