[TYPO3-core] RFC: #9575: use native filter_functions for validate and sanitize
Martin Kutschker
masi-no at spam-typo3.org
Thu Oct 16 11:40:53 CEST 2008
Steffen Kamper schrieb:
> this is a SVN patch request.
>
> Type: Feature (Enhancement)
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9575
>
> Branches: trunk
>
> Since PHP 5.2 the filter_functions are built-in.
>
> This gives the opportunity to use this native functions as they are more
> easy and faster.
> I changed / added these to t3lib_div
>
> changed functions:
> validIP / validIPv4 / validIPv6 / validEmail
Ok, but note that the email filter accepts also IP addresses for domains
and quotes for the user part (eg "foo bar"@127.0.0.1), which are
perfectly valid, but were not supported by the function for now.
> new functions:
> validUrl / cleanUrl
They simply are wrappers for the PHP thing. I don't think we need to
blow up t3lib_div further.
Masi
More information about the TYPO3-team-core
mailing list