X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=email.php;h=946edf2ec8626ac50e4491af0f7705833a39c015;hb=13cee08524dc328f40f089631ef9efa1fc13e251;hp=1af8f9226f6fb7876553509e1e86ce2ddbfe3f14;hpb=83b8f0d0aa999a5074e885e9e7ecd072df6ca56c;p=wfpl.git diff --git a/email.php b/email.php index 1af8f92..946edf2 100644 --- a/email.php +++ b/email.php @@ -99,5 +99,5 @@ function email_header($addr) { # return true if e-mail is formatted like a valid email address function valid_email($email) { - return ereg('^[0-9a-zA-Z_~.-]+@[0-9a-zA-Z.-]+\.[a-z]+$', $email) !== false; + return ereg('^[0-9a-zA-Z_~.+-]+@[0-9a-zA-Z.-]+\.[a-z]+$', $email) !== false; }