Skip to content

Commit

Permalink
[4.0.x] - Added unicode flag for email filter
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jan 28, 2019
1 parent 73aa0d6 commit 32db278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phalcon/filter/sanitize/email.zep
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ class Email
*/
public function __invoke(var input)
{
return filter_var(input, constant("FILTER_SANITIZE_EMAIL"));
return filter_var(input, FILTER_SANITIZE_EMAIL, FILTER_FLAG_EMAIL_UNICODE);
}
}

0 comments on commit 32db278

Please sign in to comment.