aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-07-01 17:00:17 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-07-03 10:11:50 +0200
commit690323092ec23ce3c04591963d268bf14f0c411b (patch)
treee7e7c0f068b7eae7eff33df1925c081fb4f1b452 /lib/files
parent04e4d9580f74a368d4e4c9bfb901d515d4b64ee2 (diff)
downloadnextcloud-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.php2
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(