aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/cryptstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_encryption/lib/cryptstream.php')
-rw-r--r--apps/files_encryption/lib/cryptstream.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/cryptstream.php b/apps/files_encryption/lib/cryptstream.php
index e4544313f63..7fbfeaa7a86 100644
--- a/apps/files_encryption/lib/cryptstream.php
+++ b/apps/files_encryption/lib/cryptstream.php
@@ -29,9 +29,12 @@ class OC_CryptStream{
public function stream_open($path, $mode, $options, &$opened_path){
$path=str_replace('crypt://','',$path);
- $this->source=OC_FileSystem::fopen($path.'.enc',$mode);
+ OC_Log::write('files_encryption','open encrypted '.$path. ' in '.$mode,OC_Log::DEBUG);
+ OC_FileProxy::$enabled=false;//disable fileproxies so we can open the source file
+ $this->source=OC_FileSystem::fopen($path,$mode);
+ OC_FileProxy::$enabled=true;
if(!is_resource($this->source)){
- OC_Log::write('files_encryption','failed to open '.$path.'.enc',OC_Log::ERROR);
+ OC_Log::write('files_encryption','failed to open '.$path,OC_Log::ERROR);
}
return is_resource($this->source);
}