Index: t3lib/class.t3lib_extfilefunc.php =================================================================== --- t3lib/class.t3lib_extfilefunc.php (revision 4037) +++ t3lib/class.t3lib_extfilefunc.php (working copy) @@ -696,7 +696,7 @@ if (!$this->isInit) return FALSE; $theFolder = $this->cleanFileName($cmds['data']); - if ($theFolder) { + if (isset($theFolder)) { if ($this->checkFileNameLen($theFolder)) { $theTarget = $this->is_directory($cmds['target']); // Check the target dir if ($theTarget) { Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 4037) +++ t3lib/class.t3lib_div.php (working copy) @@ -2847,7 +2847,7 @@ if ($path) { $d = @dir($path); if (is_object($d)) { - while($entry=$d->read()) { + while(false !== ($entry=$d->read())) { if (@is_dir($path.'/'.$entry) && $entry!= '..' && $entry!= '.') { $filearray[]=$entry; } @@ -5167,4 +5167,4 @@ } } -?> \ No newline at end of file +?> Index: typo3/class.file_list.inc =================================================================== --- typo3/class.file_list.inc (revision 4037) +++ typo3/class.file_list.inc (working copy) @@ -564,7 +564,7 @@ $d = @dir($path); $tempArray=Array(); if (is_object($d)) { - while($entry=$d->read()) { + while(false !== ($entry=$d->read())) { if ($entry!='.' && $entry!='..') { $wholePath = $path.'/'.$entry; // Because of odd PHP-error where
-tag is sometimes placed after a filename!! if (@file_exists($wholePath) && (!$type || t3lib_div::inList($type,filetype($wholePath)))) {