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

Steffen Kamper info at sk-typo3.de
Thu Oct 16 11:50:51 CEST 2008


Hi Masi,

Martin Kutschker schrieb:
> 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.
>

this wasn't valid with older function as well, i checked it.
i think for the context where you validate emails (in mail forms) these 
adresses shouldn't be used. You normally use this in intranets etc, do 
you really think this should be supported? Thing about i would enter 
this in a mail form:
john.doe at 127.0.0.1

>> new functions:
>> validUrl / cleanUrl
> 
> They simply are wrappers for the PHP thing. I don't think we need to
> blow up t3lib_div further.
> 

it's useful for form validating imho and i have in mind that we split up 
  t3lib_div anyway, so later we could have one class for validating only.

vg Steffen


More information about the TYPO3-team-core mailing list