summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-18 15:41:01 +0100
committerJulius Härtl (Rebase PR Action) <github@juliushaertl.de>2023-03-06 22:46:07 +0000
commitd515da502f34af151e156ba383c1d2e5c8289520 (patch)
treeec10b1749ed0b4018bf8917f96c0abf54ca88ec7 /lib/private/legacy
parent3287eddbbc4465ee5fcb39016b3ad0ad27959ea6 (diff)
downloadnextcloud-server-d515da502f34af151e156ba383c1d2e5c8289520.tar.gz
nextcloud-server-d515da502f34af151e156ba383c1d2e5c8289520.zip
fix: Use proper path for quota fetching
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/OC_Helper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 0004edf5b8f..8d708118b96 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -473,7 +473,7 @@ class OC_Helper {
if (!$view) {
throw new \OCP\Files\NotFoundException();
}
- $fullPath = $view->getAbsolutePath($path);
+ $fullPath = Filesystem::normalizePath($view->getAbsolutePath($path));
$cacheKey = $fullPath. '::' . ($includeMountPoints ? 'include' : 'exclude');
if ($useCache) {
@@ -624,9 +624,9 @@ class OC_Helper {
/** @var ICacheFactory $cacheFactory */
$cacheFactory = \OC::$server->get(ICacheFactory::class);
$memcache = $cacheFactory->createLocal('storage_info');
- $cacheKey = Filesystem::normalizePath($absolutePath) . '::';
- $memcache->remove($cacheKey . 'include');
- $memcache->remove($cacheKey . 'exclude');
+ $cacheKeyPrefix = Filesystem::normalizePath($absolutePath) . '::';
+ $memcache->remove($cacheKeyPrefix . 'include');
+ $memcache->remove($cacheKeyPrefix . 'exclude');
}
/**