check if we are writing to user/files, otherwise skip encryption

remotes/origin/stable6
Bjoern Schiessle 12 years ago
parent e9ce704f17
commit d3af7a9aa4
  1. 3
      apps/files_encryption/lib/proxy.php

@ -47,7 +47,8 @@ class Proxy extends \OC_FileProxy {
*/
private static function shouldEncrypt($path) {
if (\OCP\App::isEnabled('files_encryption') === false || Crypt::mode() !== 'server') {
if (\OCP\App::isEnabled('files_encryption') === false || Crypt::mode() !== 'server' ||
strpos($path, '/' . \OCP\User::getUser() . '/files') !== 0) {
return false;
}

Loading…
Cancel
Save