Browse Source

additional readdir check in mappedlocal

remotes/origin/stable6
Thomas Müller 12 years ago
parent
commit
f1eec74f70
  1. 2
      lib/files/storage/mappedlocal.php

2
lib/files/storage/mappedlocal.php

@ -65,7 +65,7 @@ class MappedLocal extends \OC\Files\Storage\Common{
$logicalPath = $this->mapper->physicalToLogic($physicalPath);
$dh = opendir($physicalPath);
while ($file = readdir($dh)) {
while (($file = readdir($dh)) !== false) {
if ($file === '.' or $file === '..') {
continue;
}

Loading…
Cancel
Save