summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/stream.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_encryption/lib/stream.php')
-rw-r--r--apps/files_encryption/lib/stream.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/stream.php b/apps/files_encryption/lib/stream.php
index 934b286e6eb..dcdad7ee561 100644
--- a/apps/files_encryption/lib/stream.php
+++ b/apps/files_encryption/lib/stream.php
@@ -265,7 +265,11 @@ class Stream {
$session = new Session();
- $this->keyfile = Crypt::keyDecrypt( $this->encKeyfile, $session->getPrivateKey( $this->userId ) );
+ $privateKey = $session->getPrivateKey( $this->userId );
+
+// trigger_error( "privateKey = '".var_export( $privateKey, 1 ) ."'" );
+
+ $this->keyfile = Crypt::keyDecrypt( $this->encKeyfile, $privateKey );
return true;
@@ -302,7 +306,7 @@ class Stream {
* @note PHP automatically updates the file pointer after writing data to reflect it's length. There is generally no need to update the poitner manually using fseek
*/
public function stream_write( $data ) {
- trigger_error("goon");
+
// Disable the file proxies so that encryption is not automatically attempted when the file is written to disk - we are handling that separately here and we don't want to get into an infinite loop
\OC_FileProxy::$enabled = false;