Skip to content

Commit ad182c3

Browse files
committed
fix: Use proper path for quota fetching
Signed-off-by: Julius Härtl <[email protected]>
1 parent b2d893b commit ad182c3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/dav/lib/Connector/Sabre/Directory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function getQuotaInfo() {
329329
return $this->quotaInfo;
330330
}
331331
try {
332-
$storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $this->info, false);
332+
$storageInfo = \OC_Helper::getStorageInfo($this->fileView->getRelativePath($this->info->getPath()), $this->info, false);
333333
if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) {
334334
$free = \OCP\Files\FileInfo::SPACE_UNLIMITED;
335335
} else {

lib/private/legacy/OC_Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoin
473473
if (!$view) {
474474
throw new \OCP\Files\NotFoundException();
475475
}
476-
$fullPath = $view->getAbsolutePath($path);
476+
$fullPath = Filesystem::normalizePath($view->getAbsolutePath($path));
477477

478478
$cacheKey = $fullPath. '::' . ($includeMountPoints ? 'include' : 'exclude');
479479
if ($useCache) {

0 commit comments

Comments
 (0)