diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-21 20:48:14 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-21 20:48:49 +0100 |
commit | c20319d37701efb9d32c38dd71880739ca75b33f (patch) | |
tree | 1f2f523650e24ea0d1cefd02f653cb85eee57c37 /apps/files_encryption/lib/cryptstream.php | |
parent | d9c7e4c333f858efaaee35d26ea12733d29bd694 (diff) | |
download | nextcloud-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.php | 5 |
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 |