]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix for mb strlen
authorArtem Kochnev <MrJeos@gmail.com>
Thu, 20 Jul 2017 14:29:50 +0000 (17:29 +0300)
committerMorris Jobke <hey@morrisjobke.de>
Sat, 22 Jul 2017 09:10:25 +0000 (11:10 +0200)
Error with moving files with long names in UTF-8

lib/private/Files/Cache/Cache.php

index 9d8e67d1d1236c16819b421b09f1242baab0826d..481a384a6e11fedc0a0e1f063ae68dc9cfd3af10 100644 (file)
@@ -526,7 +526,7 @@ class Cache implements ICache {
                        $this->connection->beginTransaction();
                        if ($sourceData['mimetype'] === 'httpd/unix-directory') {
                                //update all child entries
-                               $sourceLength = strlen($sourcePath);
+                               $sourceLength = mb_strlen($sourcePath);
                                $query = $this->connection->getQueryBuilder();
 
                                $fun = $query->func();