Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread R�kos Attila
I have attached a class which - hopefully - takes care of each possible issue :) Attila___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought

Re: Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread Andrei Thomaz
there is a problem with the behavior described below: "The above script check for a "@" followed by the last instance of "."..." This turns e-mails from some countries (like [EMAIL PROTECTED]) invalid. For example, I had to fix the e-mail validation in the code of some CMS to develop some sites

Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread R�kos Attila
This is much better, but not perfect yet :) It still lets pass strings like @., [EMAIL PROTECTED], [EMAIL PROTECTED], foo@@foo.com, etc. I think that validating carefully everything what comes from the user is an essential thing, and we have to don't allow "breaking" programs by wrong inputs. It

Re[2]: [Flashcoders] as 2 email validation class

2006-11-18 Thread R�kos Attila
Well, this is too simple, there are too many invalid strings which are considered as valid by this script. I think if you validate the input, then do it correctly or don't validate at all :) An incomplete validation makes you feel that your data is valid and secure, however it can lead to unexpect