From 6ca80b72b0fe8e5410b50f737645c6701e0d4b92 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 27 Jul 2012 10:01:28 +0200 Subject: [PATCH] accept any @local email addresses --- webui/system/misc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;