aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/cryptstream.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 /apps/files_encryption/lib/cryptstream.php
parentd9c7e4c333f858efaaee35d26ea12733d29bd694 (diff)
downloadnextcloud-server-c20319d37701efb9d32c38dd71880739ca75b33f.tar.gz
nextcloud-server-c20319d37701efb9d32c38dd71880739ca75b33f.zip
fix incorrect information in the filecache when using encryption
Diffstat (limited to 'apps/files_encryption/lib/cryptstream.php')
-rw-r--r--apps/files_encryption/lib/cryptstream.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_encryption/lib/cryptstream.php b/apps/files_encryption/lib/cryptstream.php
index 97e0846187d..86583096f1d 100644
--- a/apps/files_encryption/lib/cryptstream.php
+++ b/apps/files_encryption/lib/cryptstream.php
@@ -90,7 +90,6 @@ class OC_CryptStream{
}
public function stream_write($data){
- error_log('write to '. $this->path);
$length=strlen($data);
$written=0;
$currentPos=ftell($this->source);
@@ -148,9 +147,7 @@ class OC_CryptStream{
}
public function stream_close(){
- if(OC_FileCache::inCache($this->path)){
- OC_FileCache::put($this->path,array('encrypted'=>true));
- }
+ OC_FileCache::put($this->path,array('encrypted'=>true));
return fclose($this->source);
}
} \ No newline at end of file