[TYPO3-core] RFC: #9575: use native filter_functions for validate and sanitize

Dmitry Dulepov dmitry.dulepov at gmail.com
Fri Oct 24 16:31:30 CEST 2008


Hi!

Martin Kutschker wrote:
> return filter_var($ip, FILTER_VALIDATE_IP)===false ? false : true;

return filter_var($ip, FILTER_VALIDATE_IP) !== false;

-- 
Dmitry Dulepov
TYPO3 translations support
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog:
http://typo3bloke.net/post-details/get_typo3_coding_guidelines_here/


More information about the TYPO3-team-core mailing list