diff options
author | Artem Kochnev <MrJeos@gmail.com> | 2017-07-20 17:29:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-20 17:29:50 +0300 |
commit | 5abeb9519e0d705208d4c267f5a2dba831000ced (patch) | |
tree | c20b085b0df63104b660f4788d895b01fe13cb7f | |
parent | c0e9b374f16b139dc298c8c953f36b519b80793e (diff) | |
download | nextcloud-server-5abeb9519e0d705208d4c267f5a2dba831000ced.tar.gz nextcloud-server-5abeb9519e0d705208d4c267f5a2dba831000ced.zip |
Fix for mb strlen
Error with moving files with long names in UTF-8
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 1f3f2433e45..60d9489e1cc 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -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(); |