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

Steffen Kamper info at sk-typo3.de
Thu Oct 16 13:04:17 CEST 2008


Hi Masi,

Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> 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
> 
> I pointed out that the filter allows that. Now you're telling me that
> you don't want it. But IIRC there is even a bugreport who wanted support
> for IP-based email addresses.
> 
> To some it up for john.doe at 127.0.0.1:
> 
> before patch: invalid
> after patch: valid
> 

ah - thx fot that, i had an error in my testing.
Now i improved it and made this invalid, but with the optional parameter 
you may allow this syntax for special usage.
I also corrected a small typo in the IP-filters.

vg Steffen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_filter2.diff
Type: text/x-diff
Size: 3503 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081016/cef7a9b9/attachment.diff 


More information about the TYPO3-team-core mailing list