aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/cache/scanner.php
diff options
context:
space:
mode:
authorFlorin Peter <fp@datawerk.de>2013-04-29 15:43:48 +0200
committerFlorin Peter <fp@datawerk.de>2013-04-29 15:43:48 +0200
commitf55aaad858396484d35f87ca09e5f53e9848ddf6 (patch)
tree0efcc17aefe3fe58c28cf3fbfb807d93fa3828b4 /lib/files/cache/scanner.php
parenta5c72f1ad27dad9b9b81e9819b6e72473a72e80d (diff)
downloadnextcloud-server-f55aaad858396484d35f87ca09e5f53e9848ddf6.tar.gz
nextcloud-server-f55aaad858396484d35f87ca09e5f53e9848ddf6.zip
fix for infinite loop causing on files_encryption branch when testing "apps/files_encryption/test/crypt.php" on Method testSymmetricStreamEncryptShortFileContent
Diffstat (limited to 'lib/files/cache/scanner.php')
-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 f019d4fc608..5241acec1ee 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -68,7 +68,7 @@ class Scanner {
if ($data) {
if ($file) {
$parent = dirname($file);
- if ($parent === '.') {
+ if ($parent === '.' or $parent === '/') {
$parent = '';
}
if (!$this->cache->inCache($parent)) {