]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable NFD encoding wrapper by default 907/head
authorVincent Petry <pvince81@owncloud.com>
Tue, 16 Aug 2016 13:44:26 +0000 (15:44 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 17 Aug 2016 12:45:18 +0000 (14:45 +0200)
Seems I forgot to set it back to false after testing.
Will give a performance boost for all storages.

lib/private/legacy/util.php

index 83274f82792967a22dbad5deee6d5557922aa500..a11026307558f7af9a2d75c335f52727917930fe 100644 (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;