diff --git a/resources/functions.php b/resources/functions.php index f17eda2a25..6c09d8c65b 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -1101,7 +1101,7 @@ function number_pad($number,$n) { // validate email address syntax if(!function_exists('valid_email')) { function valid_email($email) { - $regex = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]+\.[A-z0-9]{2,6}$/'; + $regex = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]+(\.[A-z0-9]{2,6})?$/'; if ($email != "" && preg_match($regex, $email) == 1) { return true; // email address has valid syntax }