Skip to content

Commit 861a787

Browse files
authored
Merge pull request #32365 from nextcloud/backport/32335/stable24
[stable24] don't unjail the path when getting the storage info
2 parents 2d52bda + cc4aab1 commit 861a787

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/private/legacy/OC_Helper.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,6 @@ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoin
519519
$sourceStorage = $storage;
520520
if ($storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
521521
$includeExtStorage = false;
522-
$internalPath = $storage->getUnjailedPath($rootInfo->getInternalPath());
523-
} else {
524-
$internalPath = $rootInfo->getInternalPath();
525522
}
526523
if ($includeExtStorage) {
527524
if ($storage->instanceOfStorage('\OC\Files\Storage\Home')
@@ -545,7 +542,7 @@ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoin
545542
$quota = $sourceStorage->getQuota();
546543
}
547544
try {
548-
$free = $sourceStorage->free_space($internalPath);
545+
$free = $sourceStorage->free_space($rootInfo->getInternalPath());
549546
} catch (\Exception $e) {
550547
if ($path === "") {
551548
throw $e;

0 commit comments

Comments
 (0)