diff options
author | Andrey Andreev <narf@devilix.net> | 2017-11-09 16:29:42 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-11-09 16:29:42 +0100 |
commit | 4fed06145e798fcff79bbe571a3ee3e262fa484a (patch) | |
tree | 37229e1445cdce4860fa8f4032f2075d2be93de4 /system/libraries/Email.php | |
parent | f9133e2ea006a796fdaf39d5421d99f1a9a57c80 (diff) | |
parent | 4541bf930e715917622dc2d225bf5517f99db35a (diff) |
Merge branch '3.1-stable' into develop
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r-- | system/libraries/Email.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 5943127bc..f115d9f40 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1016,7 +1016,7 @@ class CI_Email { { if (function_exists('idn_to_ascii') && $atpos = strpos($email, '@')) { - $email = self::substr($email, 0, ++$atpos).idn_to_ascii(self::substr($email, $atpos), INTL_IDNA_VARIANT_UTS46); + $email = self::substr($email, 0, ++$atpos).idn_to_ascii(self::substr($email, $atpos), 0, INTL_IDNA_VARIANT_UTS46); } return (bool) filter_var($email, FILTER_VALIDATE_EMAIL); @@ -1823,7 +1823,7 @@ class CI_Email { { if (function_exists('idn_to_ascii') && $atpos = strpos($email, '@')) { - $email = self::substr($email, 0, ++$atpos).idn_to_ascii(self::substr($email, $atpos), INTL_IDNA_VARIANT_UTS46); + $email = self::substr($email, 0, ++$atpos).idn_to_ascii(self::substr($email, $atpos), 0, INTL_IDNA_VARIANT_UTS46); } return (filter_var($email, FILTER_VALIDATE_EMAIL) === $email && preg_match('#\A[a-z0-9._+-]+@[a-z0-9.-]{1,253}\z#i', $email)); |