[TYPO3-core] RFC #11152: Warning in Import/Export Module

Peter Niederlag niederlag at ikd01.de
Wed May 20 10:04:22 CEST 2009


Steffen Kamper schrieb:
> Hi,
> 
> +1 by reading and testing.
> What caused the error, was it ereg_replace before?

yes, followup to #9994. I am just asking myself wether the . shouldn't
get an escape as well?

$inData['filename'] =
trim(preg_replace('/[^[:alnum:].\/_-]*/','',preg_replace('/\.(t3d|xml)$/','',$inData['filename'])));

opinions?

Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *


More information about the TYPO3-team-core mailing list