diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 18:17:33 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 18:17:33 +0200 |
commit | 25493227636d19ff6bc28ef10c0c319cc572ea28 (patch) | |
tree | e1cdd6c959da76567e170c045881de9e1e2d558b /apps/files_encryption | |
parent | a212c98125c956c35a72e966d72e720b0fd42376 (diff) | |
download | nextcloud-server-25493227636d19ff6bc28ef10c0c319cc572ea28.tar.gz nextcloud-server-25493227636d19ff6bc28ef10c0c319cc572ea28.zip |
we need to use the path relative to data/
Diffstat (limited to 'apps/files_encryption')
-rw-r--r-- | apps/files_encryption/lib/util.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 4bd07287cd7..7983c829e11 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -565,9 +565,6 @@ class Util { // split the path parts $pathParts = explode('/', $path); - // get relative path - $relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path); - if (isset($pathParts[2]) && $pathParts[2] === 'files' && $this->view->file_exists($path) && $this->isEncryptedPath($path) ) { @@ -580,7 +577,7 @@ class Util { $lastChunkNr = floor($size / 8192); // open stream - $stream = fopen('crypt://' . $relativePath, "r"); + $stream = fopen('crypt://' . $path, "r"); if (is_resource($stream)) { // calculate last chunk position |