summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-26 09:27:29 +0200
committerVincent Petry <vincent@nextcloud.com>2022-04-26 09:27:29 +0200
commit23403ef693d3c26f5ac4398daa6e531b69d42d94 (patch)
tree011a0c47db38903fdfb9b64b30d987807073df0b
parent407fb8c22bb286c4e84e2e9ec5f178bc4bc52013 (diff)
downloadnextcloud-server-23403ef693d3c26f5ac4398daa6e531b69d42d94.tar.gz
nextcloud-server-23403ef693d3c26f5ac4398daa6e531b69d42d94.zip
Allow compatibility wrapper on local external storage
The check was likely in place to prevent adding the wrapper on the root and home storage, which is not possible anyway since the encoding option cannot be set on that mount. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
-rw-r--r--lib/private/Files/SetupManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 98792ed8043..1c0df77e947 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -147,7 +147,7 @@ class SetupManager {
});
Filesystem::addStorageWrapper('oc_encoding', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
- if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) {
+ if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
return new Encoding(['storage' => $storage]);
}
return $storage;