Bug #19944
closedFileadmin-module wrongly allows creation of trailing dot directories on UTF8 FS
0%
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
Updated by Francois Suter over 15 years ago
Committed to trunk (revision 5070)
Committed to 4.2 (revision 5071)
Committed to 4.1 (revision 5072)
Patch committed to 4.1 is attached to this report. And so is patch for trunk with fully rewritten t3lib_basicFileFunctions::cleanFileName() method.
Updated by Francois Suter over 15 years ago
Blast, can't upload file after solving the issue. Reopening it.
Updated by Francois Suter over 15 years ago
Closing again, after having added the patch file for trunk.