]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix problem with encryption flag not being saved correctly in the filecache
authorRobin Appelman <icewind@owncloud.com>
Mon, 18 Jun 2012 16:17:49 +0000 (18:17 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 18 Jun 2012 16:18:10 +0000 (18:18 +0200)
apps/files_encryption/lib/cryptstream.php

index 56331cbf60135c23927f96ab4c4b8eff5c0edf89..64fec381dedbc4a12e12ba7bc1912fa1cbbd5e84 100644 (file)
@@ -159,7 +159,7 @@ class OC_CryptStream{
        public function stream_close(){
                $this->flush();
                if($this->meta['mode']!='r' and $this->meta['mode']!='rb'){
-                       OC_FileCache::put($this->path,array('encrypted'=>true));
+                       OC_FileCache::put($this->path,array('encrypted'=>true),'');
                }
                return fclose($this->source);
        }