Merge pull request #3169 from owncloud/fix_infinite_loop_for_file_cache

fix for infinite loop causing on files_encryption branch when testing
This commit is contained in:
FlorinPeter 2013-04-29 17:05:41 -07:00
commit b464970142
2 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ class Cache {
$this->calculateFolderSize($path);
if ($path !== '') {
$parent = dirname($path);
if ($parent === '.') {
if ($parent === '.' or $parent === '/') {
$parent = '';
}
$this->correctFolderSize($parent);

View File

@ -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)) {