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:
13
class2.php
13
class2.php
@@ -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;
|
||||
|
Reference in New Issue
Block a user