fix: additional chars =~ in mail address regex

pull/1349/head
Andreas Ziegler 2016-07-10 01:32:37 +02:00
parent 538b65a421
commit efe31e8b07
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ class Attribute extends AppModel {
case 'target-email':
case 'whois-registrant-email':
// we don't use the native function to prevent issues with partial email addresses
if (preg_match("#^[A-Z0-9._&%+-]*@[A-Z0-9.\-_]+\.[A-Z]{2,}$#i", $value)) {
if (preg_match("#^[A-Z0-9._&%+-=~]*@[A-Z0-9.\-_]+\.[A-Z]{2,}$#i", $value)) {
$returnValue = true;
} else {
$returnValue = 'Email address has an invalid format. Please double check the value or select type "other".';