Skip to content

Commit

Permalink
updated valid_email function
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Nov 5, 2014
1 parent b63a728 commit 8077ec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fuel/modules/fuel/helpers/validator_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ function has_one_of_these($args = null)
{
function valid_email($email)
{
return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $email)) ? FALSE : TRUE;
//return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,10}$/ix", $email)) ? FALSE : TRUE;
return filter_var($email, FILTER_VALIDATE_EMAIL);
}
}
// --------------------------------------------------------------------
Expand Down

0 comments on commit 8077ec1

Please sign in to comment.