From cc4aab14d730fcc23ed40c4aff6dbf49cea78f7f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 11 May 2022 11:41:00 +0200 Subject: [PATCH] don't unjail the path when getting the storage info the original reason for adding it no longer exist. This was added with #30985 since then the share source storage was also used, however this was changed with #32076 Signed-off-by: Robin Appelman --- lib/private/legacy/OC_Helper.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php index 0d1903007c27e..6aa0b582c216a 100644 --- a/lib/private/legacy/OC_Helper.php +++ b/lib/private/legacy/OC_Helper.php @@ -519,9 +519,6 @@ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoin $sourceStorage = $storage; if ($storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) { $includeExtStorage = false; - $internalPath = $storage->getUnjailedPath($rootInfo->getInternalPath()); - } else { - $internalPath = $rootInfo->getInternalPath(); } if ($includeExtStorage) { if ($storage->instanceOfStorage('\OC\Files\Storage\Home') @@ -545,7 +542,7 @@ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoin $quota = $sourceStorage->getQuota(); } try { - $free = $sourceStorage->free_space($internalPath); + $free = $sourceStorage->free_space($rootInfo->getInternalPath()); } catch (\Exception $e) { if ($path === "") { throw $e;