diff --git a/webui/system/misc.php b/webui/system/misc.php index 109cbd46..0db71d66 100644 --- a/webui/system/misc.php +++ b/webui/system/misc.php @@ -121,7 +121,7 @@ function checkemail($email, $domains) { function validemail($email = '') { if($email == '') { return 0; } - if($email == 'admin@local') { return 1; } + if(preg_match("/@local$/", $email)) { return 1; } if(preg_match('/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,5})$/', $email)) { return 1;