Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/westberliner/checksum.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ChecksumController.php')
-rw-r--r--lib/Controller/ChecksumController.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Controller/ChecksumController.php b/lib/Controller/ChecksumController.php
index 91e7f0f..6c491c2 100644
--- a/lib/Controller/ChecksumController.php
+++ b/lib/Controller/ChecksumController.php
@@ -117,13 +117,14 @@ class ChecksumController extends Controller {
return null;
}
- $mount = $this->mountManager->find($user->getUID());
+ $absPath = $user->getUID() . '/files/' . $source;
+ $mount = $this->mountManager->find($absPath);
if (!$mount) {
return null;
}
- $path = '/files/' . $source;
- $file = $mount->getStorage()->fopen($path, 'rb');
+ $internalPath = $mount->getInternalPath($absPath);
+ $file = $mount->getStorage()->fopen($internalPath, 'rb');
if (!$file) {
return null;
}