mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
5a0b28d603
commit
643ef06efc
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue