diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 10:14:17 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 10:14:17 +0200 |
commit | 223d3c91d681fbbbbcfa83bac4ddc694c71c498b (patch) | |
tree | c8af199b7189b2f6409b9e8769b52a4e14cd01a9 /apps/files_encryption | |
parent | a7a7ef2b3a79607677679ea96212a20a633065e3 (diff) | |
download | nextcloud-server-223d3c91d681fbbbbcfa83bac4ddc694c71c498b.tar.gz nextcloud-server-223d3c91d681fbbbbcfa83bac4ddc694c71c498b.zip |
use path relative to data/
Diffstat (limited to 'apps/files_encryption')
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 12fee750a6a..eb7ba60cb9d 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -154,9 +154,6 @@ class Proxy extends \OC_FileProxy { $plainData = null; $view = new \OC_FilesystemView('/'); - // get relative path - $relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path); - // init session $session = new \OCA\Encryption\Session($view); @@ -166,7 +163,7 @@ class Proxy extends \OC_FileProxy { && Crypt::isCatfileContent($data) ) { - $handle = fopen('crypt://' . $relativePath, 'r'); + $handle = fopen('crypt://' . $path, 'r'); if (is_resource($handle)) { while (($plainDataChunk = fgets($handle, 8192)) !== false) { |