Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-12 21:59:06 +0300
committerGitHub <noreply@github.com>2022-05-12 21:59:06 +0300
commitfebbd21814d027f7df4af6ee9f35816a47f25fcd (patch)
tree4edabe402869fcd279286f2434f66a7fe9a8167a /lib
parent5c84d3781e6772c80f862cd13a38729946206b74 (diff)
parent643ef06efc393f1c0bc4515abeebe53097298415 (diff)
Merge pull request #32335 from nextcloud/storage-info-dont-unjail
Don't unjail the path when getting the storage info
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Helper.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 0d1903007c2..6aa0b582c21 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -519,9 +519,6 @@ class OC_Helper {
$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 @@ class OC_Helper {
$quota = $sourceStorage->getQuota();
}
try {
- $free = $sourceStorage->free_space($internalPath);
+ $free = $sourceStorage->free_space($rootInfo->getInternalPath());
} catch (\Exception $e) {
if ($path === "") {
throw $e;