summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-02-26 09:07:23 +0100
committerjocuri%softhome.net <>2004-02-26 09:07:23 +0100
commite09500e15816714ae4967613dee7e436c6868e13 (patch)
tree754b4e8f1429bdd19a9154deb57a8b6f524013ef /checksetup.pl
parent3f5f2ce70463b56d5e85ea0982ce1ef2196f56d8 (diff)
downloadbugzilla-e09500e15816714ae4967613dee7e436c6868e13.tar.gz
bugzilla-e09500e15816714ae4967613dee7e436c6868e13.tar.xz
Patch for bug 65313; improves the email regexp in order to detect better invalid email addresses; r=gerv, a=justdave.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 74151d87c..a6b673a60 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -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 @.';
}