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);
}
* @return bool
*/
private static function isEncrypted($path){
- $metadata=OC_FileCache::getCached($path,'');
+ $metadata=OC_FileCache::getCached($path,'/');
return isset($metadata['encrypted']) and (bool)$metadata['encrypted'];
}
if(self::shouldEncrypt($path)){
if (!is_resource($data)) {//stream put contents should have been converter to fopen
$data=OC_Crypt::blockEncrypt($data);
- OC_FileCache::put($path,array('encrypted'=>true));
+ OC_FileCache::put($path,array('encrypted'=>true),'/');
}
}
}