mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
A few additional checks added to check_email().
This commit is contained in:
11
class2.php
11
class2.php
@@ -1364,6 +1364,17 @@ 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