summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:14 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:49 +0100
commitc20319d37701efb9d32c38dd71880739ca75b33f (patch)
tree1f2f523650e24ea0d1cefd02f653cb85eee57c37 /lib/filesystemview.php
parentd9c7e4c333f858efaaee35d26ea12733d29bd694 (diff)
downloadnextcloud-server-c20319d37701efb9d32c38dd71880739ca75b33f.tar.gz
nextcloud-server-c20319d37701efb9d32c38dd71880739ca75b33f.zip
fix incorrect information in the filecache when using encryption
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 58d5b3af715..c4d5ff35142 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -171,6 +171,7 @@ class OC_FilesystemView {
}
fclose($target);
fclose($data);
+ OC_Hook::emit( OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, array( OC_Filesystem::signal_param_path => $path));
return true;
}else{
return false;
@@ -278,6 +279,9 @@ class OC_FilesystemView {
}
public function fromTmpFile($tmpFile,$path){
if(OC_Filesystem::isValidPath($path)){
+ if(!$tmpFile){
+ debug_print_backtrace();
+ }
$source=fopen($tmpFile,'r');
if($source){
$this->file_put_contents($path,$source);
@@ -286,7 +290,7 @@ class OC_FilesystemView {
}else{
}
}else{
- error_log('invalid path');
+ return false;
}
}