aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Helper.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-05-11 11:41:00 +0200
committerRobin Appelman <robin@icewind.nl>2022-05-11 11:42:13 +0200
commit643ef06efc393f1c0bc4515abeebe53097298415 (patch)
tree434fbb9e4b4c0cf73fb25e0e762396c754def1f8 /lib/private/legacy/OC_Helper.php
parent5a0b28d603e142051967175f023b698ff7e262db (diff)
downloadnextcloud-server-643ef06efc393f1c0bc4515abeebe53097298415.tar.gz
nextcloud-server-643ef06efc393f1c0bc4515abeebe53097298415.zip
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 <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Helper.php')
-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;