I tried to create a ticket for this bug, but the trac account I
created doesn't have the necessary privileges and I can't catch anyone
on irc to fix it.
As for the bug:
In strict mode it's accepting some email addresses that are clearly
faulty, like "!#$%^&*()\\/[EMAIL PROTECTED]", that are refused in
not-so-strict mode. Source of the problem is the regular expression
used in strict mode:
"/^([EMAIL PROTECTED])@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i"
As you can see, this let's you validate everthing but address with "@"
and/or whitespace characters in front of the main "@".
Possible solutions:
1. Use both regexes in strict mode: First, Cal Henderson's to filter
everything that not's a valid email address at all, then the "strict"
one to filter those address that "strict" mode was created to sort
out. Pretty much a work around hack really, until a better solution is
found.
2. Better regex (duh): i like "/[EMAIL PROTECTED]
{2,4}$/i" but I think the ultimate solution would be to take the first
half of Henderson's regex (up to the @) and replace with it the first
part of the current "strict" regex. That way, you get the best of
both. A completely compliant pre-"@" match and a quick domain match
that accepts only fully qualified domain names.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---