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

Moreno Feltscher moreno.feltscher at gmail.com
Sat Jan 31 14:13:20 CET 2009


On Fri, Jan 30, 2009 at 11:10 PM, Peter Foerger <pfoerger at gmail.com> wrote:
> I would go for '$fileName = preg_replace('/[.]*$/','',$fileName);' which
> is a bit easier to read than your approach
> '$fileName = preg_replace('/\.*$/','',$fileName);'

I'm happier with preg_replace('/\.*$/','',$fileName);

+1 on reading.

Moreno


More information about the TYPO3-team-core mailing list