Bug #15682 » 2642.diff
t3lib/class.t3lib_extfilefunc.php (working copy) | ||
---|---|---|
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) {
|
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
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;
|
||
}
|
||
... | ... | |
}
|
||
}
|
||
?>
|
||
?>
|
typo3/class.file_list.inc (working copy) | ||
---|---|---|
$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 <br />-tag is sometimes placed after a filename!!
|
||
if (@file_exists($wholePath) && (!$type || t3lib_div::inList($type,filetype($wholePath)))) {
|
- « Previous
- 1
- 2
- 3
- Next »