[TYPO3-core] RFC: #10313: Fileadmin-module wrongly allows creation of trailing dot directories on UTF8 FS

Francois Suter fsuter at cobweb.ch
Fri Feb 27 12:17:21 CET 2009


Hi,

> Problem: 
> 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 (move preg_replace to top of cleanFileName()).
> 
> Furthermore PHPDoc description was updated (Thanks to Marcus Krause)

Committed to trunk (revision 5070)
Committed to 4.2 (revision 5071)
Committed to 4.1 (revision 5072)

Actually the 4.2 patch didn't apply cleanly to 4.1. Attached is the 
adapted patch committed to 4.1.

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10313-4_1.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090227/d50d17df/attachment.txt 


More information about the TYPO3-team-core mailing list