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

Peter Foerger pfoerger at gmail.com
Fri Jan 30 23:10:36 CET 2009


Hi,

Steffen Gebert schrieb:

> 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()).
> 


I would go for '$fileName = preg_replace('/[.]*$/','',$fileName);' which
is a bit easier to read than your approach
'$fileName = preg_replace('/\.*$/','',$fileName);'

besides that +1 by reading

Peter


More information about the TYPO3-team-core mailing list