Issue Bug Closed

#19944Fileadmin-module wrongly allows creation of trailing dot directories on UTF8 FS

Steffen Gebert 01/30/09, 21:50 updated 07/02/10, 11:18

Description

TYPO3 doesn’t allow using directory names ending with one or more dots.
This is ensured by function t3lib_basicFileFunctions::cleanFileName().

Unfortunately a later added check for UTF-8 file systems (aka $GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘forceCharset’] == ‘utf-8’ && $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘UTF8filesystem’]) enables user to create and rename those directories (but not delete, upload etc.).

The attached patch prevents creating such directories or renaming a directory to a new name with trailing dots by removing them.

Furthermore PHPDoc description was updated (Thanks to Marcus Krause)

(issue imported from #M10313)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.