aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/hooks
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2012-12-04 19:53:13 +0000
committerSam Tuke <samtuke@owncloud.com>2012-12-04 19:53:13 +0000
commitbc3550b37bd3a069edc374df58218fb216056c0e (patch)
tree679554c8edd191cc17e424f787a6fa4cc4fc83b2 /apps/files_encryption/hooks
parentbfd47cd2dfad9c613d51fa9b4e5391f25ab57a87 (diff)
downloadnextcloud-server-bc3550b37bd3a069edc374df58218fb216056c0e.tar.gz
nextcloud-server-bc3550b37bd3a069edc374df58218fb216056c0e.zip
Development Snapshot
Opening short files via webdav, that were saved via webdav, now works
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r--apps/files_encryption/hooks/hooks.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index 2c8921ef351..20ce45244ac 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -67,7 +67,9 @@ class Hooks {
$_SESSION['enckey'] = Crypt::symmetricDecryptFileContent( $encryptedKey, $params['password'] );
-// trigger_error( "\$_SESSION['enckey'] = {$_SESSION['enckey']}" );
+ \OC_FileProxy::$enabled = false;
+ file_put_contents( '/home/samtuke/enckey', $_SESSION['enckey'] );
+ \OC_FileProxy::$enabled = true;
$view1 = new \OC_FilesystemView( '/' . $params['uid'] );