mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
validate email with filter_var
This commit is contained in:
@@ -311,7 +311,7 @@ if (count($_GET) > 0 && !$_GET['h'])
|
||||
if (strpos($email,'*') === False && strpos($email,'?') === False
|
||||
&& strpos($email,'%') === False)
|
||||
{
|
||||
if (validemail($email) !== 1)
|
||||
if (!validemail($email))
|
||||
{
|
||||
stdmsg("Error", "Bad email.");
|
||||
stdfoot();
|
||||
|
||||
Reference in New Issue
Block a user