mirror of
https://github.com/nextcloud/server.git
synced 2024-08-07 03:07:59 +02:00
use path relative to data/
This commit is contained in:
parent
a7a7ef2b3a
commit
223d3c91d6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user