regex - Why are accents accepted in sfValidatorEmail? -


there bug in application, apparently accents in email address not considered error , sfmailer crashing error because of this.

digging through code realized wasn't blame.

sfvalidatoremail uses regular expression:

const regex_email = '/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i'; 

accents in first part of email accepted.

should sfvalidatoremail not accept accents or should sfmailer accept it?

sfmailer should accept it. legitimate have accents in first part of email address.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -