disabled FileProxy in Keymanager::getPrivateKey

This commit is contained in:
Florin Peter 2013-05-15 02:36:23 +02:00
parent ddedf20106
commit 499fe6ca8e
1 changed files with 7 additions and 2 deletions

View File

@ -38,9 +38,14 @@ class Keymanager {
public static function getPrivateKey( \OC_FilesystemView $view, $user ) {
$path = '/' . $user . '/' . 'files_encryption' . '/' . $user.'.private.key';
$proxyStatus = \OC_FileProxy::$enabled;
\OC_FileProxy::$enabled = false;
$key = $view->file_get_contents( $path );
\OC_FileProxy::$enabled = $proxyStatus;
return $key;
}