]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if we are writing to user/files, otherwise skip encryption
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 14 Oct 2013 15:13:14 +0000 (17:13 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 14 Oct 2013 15:13:14 +0000 (17:13 +0200)
apps/files_encryption/lib/proxy.php

index 8621c1ba51d6199dc8c49f46a06fa1ed3cc35c03..04795b35670405739ac394a581a5d336b63881ba 100644 (file)
@@ -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;
                }