]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't unjail the path when getting the storage info 32335/head
authorRobin Appelman <robin@icewind.nl>
Wed, 11 May 2022 09:41:00 +0000 (11:41 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 11 May 2022 09:42:13 +0000 (11:42 +0200)
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>
lib/private/legacy/OC_Helper.php

index 0d1903007c27ea6ee677d96bba385e82a8cded30..6aa0b582c216a9e36a2d7140aa6befeb974a3693 100644 (file)
@@ -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;