Commit 6415b65a authored by Callan Barrett's avatar Callan Barrett Committed by Loui Chang
Browse files

Fix up valid email function, FS#12269



All we're looking for now is an @ in any email address to fix problem with not being able to have + in addresses and just because I see no advantage to having any sort of stringent validation
Signed-off-by: default avatarCallan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 78c2b5c6
......@@ -132,7 +132,7 @@ function check_sid() {
# verify that an email address looks like it is legitimate
#
function valid_email($addy) {
return eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,4}$", $addy);
return strpos($addy, '@');
}
# a new seed value for mt_srand()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment