summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-23 01:21:36 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-23 01:21:36 +0200
commit85e0c78166d45b0ef9d00b1fd2164e4969ee9b83 (patch)
tree4074057cd5c1e9557f6cf6bf7e1a5debc9211c6e /lib/files
parent1cfc9d269e2e384057a2dda91050ab33d2e31628 (diff)
downloadnextcloud-server-85e0c78166d45b0ef9d00b1fd2164e4969ee9b83.tar.gz
nextcloud-server-85e0c78166d45b0ef9d00b1fd2164e4969ee9b83.zip
fix problems with german "Umlaut" in folder name
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index a98953b42aa..b73e2e83fcc 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -114,7 +114,7 @@ class Scanner {
$size = 0;
if ($this->storage->is_dir($path) && ($dh = $this->storage->opendir($path))) {
\OC_DB::beginTransaction();
- while ($file = readdir($dh)) {
+ while ($file = utf8_encode(readdir($dh))) {
$child = ($path) ? $path . '/' . $file : $file;
if (!$this->isIgnoredDir($file)) {
$data = $this->scanFile($child, $recursive === self::SCAN_SHALLOW);