Commit e09500e1 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 65313; improves the email regexp in order to detect better invalid…

Patch for bug 65313; improves the email regexp in order to detect better invalid email addresses; r=gerv, a=justdave.
parent 3f5f2ce7
......@@ -3949,7 +3949,7 @@ if ($sth->rows == 0) {
$mailcheckexp = Param('emailregexp');
$mailcheck = Param('emailregexpdesc');
} else {
$mailcheckexp = '^[^@]+@[^@]+\\.[^@]+$';
$mailcheckexp = '^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$';
$mailcheck = 'A legal address must contain exactly one \'@\',
and at least one \'.\' after the @.';
}
......
......@@ -739,7 +739,7 @@ You will get this message once a day until you\'ve dealt with these bugs!
'popular value to put here is <tt>^[^@]+$</tt>, which means ' .
'"local usernames, no @ allowed."',
type => 't',
default => q:^[^@]+@[^@]+\\.[^@]+$:,
default => q:^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$:,
checker => \&check_regexp
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment