diff options
Diffstat (limited to 'lib/Controller/ChecksumController.php')
-rw-r--r-- | lib/Controller/ChecksumController.php | 7 |
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; } |