From 32db2785190cd9430cc87bd0e5443970d73ce42c Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 28 Jan 2019 10:03:23 -0500 Subject: [PATCH] [4.0.x] - Added unicode flag for email filter --- phalcon/filter/sanitize/email.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/filter/sanitize/email.zep b/phalcon/filter/sanitize/email.zep index 426b29f6691..c01f9f27a1c 100644 --- a/phalcon/filter/sanitize/email.zep +++ b/phalcon/filter/sanitize/email.zep @@ -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); } }