Actions
Bug #19944
closedFileadmin-module wrongly allows creation of trailing dot directories on UTF8 FS
Start date:
2009-01-30
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Files
Actions