mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Functions: Miskey in valid_email function check.
This commit is contained in:
@@ -973,7 +973,7 @@ function number_pad($number,$n) {
|
||||
}
|
||||
|
||||
// validate email address syntax
|
||||
if(!function_exists('validate_email')) {
|
||||
if(!function_exists('valid_email')) {
|
||||
function valid_email($email) {
|
||||
$regex = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]+\.[A-z0-9]{2,6}$/';
|
||||
if ($email != "" && preg_match($regex, $email) == 1) {
|
||||
|
||||
Reference in New Issue
Block a user