summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Kochnev <MrJeos@gmail.com>2017-07-20 17:29:50 +0300
committerGitHub <noreply@github.com>2017-07-20 17:29:50 +0300
commit5abeb9519e0d705208d4c267f5a2dba831000ced (patch)
treec20b085b0df63104b660f4788d895b01fe13cb7f
parentc0e9b374f16b139dc298c8c953f36b519b80793e (diff)
downloadnextcloud-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.php2
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();