[Solar-talk] Solar_Valid::email() Issue
Paul M Jones
pmjones at solarphp.com
Mon Oct 16 07:42:13 PDT 2006
Hi Chris,
I'm sorry to be so late in my reply on this.
> While looking at the regex used to validate email addresses in
> Solar_Valid::email(), I noticed that it validates locale-dependent
> characters in the local-part of an email address (via \w). This
> means, depending on the current locale setting, it may validate
> invalid email addresses (some locales contain accented characters for
> example).
>
> According to my reading of RFC2822, only ASCII characters are
> currently supported in email addresses.
I have entered your note in our bug tracker at <http://solarphp.com/
trac>, which was not online at the time you originally wrote. The
validation routine is from PEAR Validate, if I recall correctly, so
you may wish to notify them as well.
Thanks for your attention to detail, and for the good report. :-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list