1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

A few additional checks added to check_email().

This commit is contained in:
Cameron
2015-08-25 13:00:53 -07:00
parent 36ccfecf23
commit fde5ee8f31

View File

@@ -1363,7 +1363,18 @@ function js_location($qry)
}
function check_email($email)
{
{
if(empty($email))
{
return false;
}
if(is_numeric(substr($email,-1))) // fix for eCaptcha accidently typed on wrong line.
{
return false;
}
if(filter_var($email, FILTER_VALIDATE_EMAIL))
{
return $email;