Skip to content
Snippets Groups Projects
Commit 25493227 authored by Björn Schießle's avatar Björn Schießle
Browse files

we need to use the path relative to data/

parent a212c981
No related branches found
No related tags found
No related merge requests found
...@@ -565,9 +565,6 @@ class Util { ...@@ -565,9 +565,6 @@ class Util {
// split the path parts // split the path parts
$pathParts = explode('/', $path); $pathParts = explode('/', $path);
// get relative path
$relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path);
if (isset($pathParts[2]) && $pathParts[2] === 'files' && $this->view->file_exists($path) if (isset($pathParts[2]) && $pathParts[2] === 'files' && $this->view->file_exists($path)
&& $this->isEncryptedPath($path) && $this->isEncryptedPath($path)
) { ) {
...@@ -580,7 +577,7 @@ class Util { ...@@ -580,7 +577,7 @@ class Util {
$lastChunkNr = floor($size / 8192); $lastChunkNr = floor($size / 8192);
// open stream // open stream
$stream = fopen('crypt://' . $relativePath, "r"); $stream = fopen('crypt://' . $path, "r");
if (is_resource($stream)) { if (is_resource($stream)) {
// calculate last chunk position // calculate last chunk position
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment