Project

General

Profile

Actions

Bug #19444

closed

Filelist Bug

Added by Matt about 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-10-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We wanted to keep directory names short and thus created two directories:
0
1
Funny thing is, Typo3 stopped listing further directories...

Why?
Because of using:
while($entry=$d->read()) {
instead of
while(false !==($entry=$d->read())) {
check http://php.net/manual/en/class.dir.php
and the comment there:
Please note the fashion in which dir::read()'s return value is checked in the example below. We are explicitly testing whether the return value is identical to (equal to and of the same type as - see Comparison Operators for more information) FALSE since otherwise, any directory entry whose name evaluates to FALSE will stop the loop.

This applies to all present Typo3 installations...

Files changed:
./class.t3lib_div.php
./class.t3lib_admin.php
./class.t3lib_tsparser_ext.php
./sysext/cms/tslib/class.tslib_content.php
./sysext/install/mod/class.tx_install.php
./class.file_list.inc
maybe more...

(issue imported from #M9527)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #15682: Reading folder contents fails if folder name is 0ClosedDmitry Dulepov2006-02-20

Actions
Actions #1

Updated by Christian Kuhn about 16 years ago

Duplicate of #15682, already fixed in 4.2.2 and trunk. Will not be fixed in 4.1 as its not security related.

Please close.

Actions #2

Updated by Christian Kuhn about 16 years ago

Fixed in released version 4.2.2. Closed.

Actions

Also available in: Atom PDF