true now no matter what input it gets, see bug 959.
/**
* does the string match roughly an email address ?
/**
* does the string match roughly an email address ?
* @param string $addr email address
* @static
* @param string $addr email address
* @static
*/
function isValidEmailAddr ( $addr ) {
*/
function isValidEmailAddr ( $addr ) {
- return preg_match( '/^([a-z0-9_.-]+([a-z0-9_.-]+)*\@[a-z0-9_-]+([a-z0-9_.-]+)*([a-z.]{2,})+)$/', strtolower($addr));
+ # There used to be a regular expression here, it got removed because it
+ # rejected valid addresses.
+ return true;