mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 04:40:13 +01:00
accept any @local email addresses
This commit is contained in:
parent
2d828c2be7
commit
6ca80b72b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user