diff options
author | Sam Tuke <samtuke@owncloud.com> | 2012-12-04 19:53:13 +0000 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2012-12-04 19:53:13 +0000 |
commit | bc3550b37bd3a069edc374df58218fb216056c0e (patch) | |
tree | 679554c8edd191cc17e424f787a6fa4cc4fc83b2 /apps/files_encryption/hooks | |
parent | bfd47cd2dfad9c613d51fa9b4e5391f25ab57a87 (diff) | |
download | nextcloud-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.php | 4 |
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'] );
|