diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-12 20:59:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 20:59:06 +0200 |
commit | febbd21814d027f7df4af6ee9f35816a47f25fcd (patch) | |
tree | 4edabe402869fcd279286f2434f66a7fe9a8167a /lib | |
parent | 5c84d3781e6772c80f862cd13a38729946206b74 (diff) | |
parent | 643ef06efc393f1c0bc4515abeebe53097298415 (diff) | |
download | nextcloud-server-febbd21814d027f7df4af6ee9f35816a47f25fcd.tar.gz nextcloud-server-febbd21814d027f7df4af6ee9f35816a47f25fcd.zip |
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.php | 5 |
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; |