Merge pull request #907 from nextcloud/nfd-default-10

[uc][10] Disable NFD encoding wrapper by default
This commit is contained in:
Lukas Reschke 2016-08-17 16:24:12 +02:00 committed by GitHub
commit f3336e93b8
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class OC_Util {
});
\OC\Files\Filesystem::addStorageWrapper('oc_encoding', function ($mountPoint, \OCP\Files\Storage $storage, \OCP\Files\Mount\IMountPoint $mount) {
if ($mount->getOption('encoding_compatibility', true) && !$storage->instanceOfStorage('\OC\Files\Storage\Shared') && !$storage->isLocal()) {
if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OC\Files\Storage\Shared') && !$storage->isLocal()) {
return new \OC\Files\Storage\Wrapper\Encoding(['storage' => $storage]);
}
return $storage;