From: Jason Woofenden Date: Tue, 8 Oct 2013 11:14:36 +0000 (-0400) Subject: allow + in email addresses X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=7a16207b28e113674dfc56846c2971086b34cd0e allow + in email addresses --- 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; }