diff options
author | Andrey Andreev <narf@devilix.net> | 2017-11-09 16:27:59 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-11-09 16:27:59 +0100 |
commit | 4541bf930e715917622dc2d225bf5517f99db35a (patch) | |
tree | e59bc61d482ff566955ccd0db90b1f6308e17c17 /system/libraries/Form_validation.php | |
parent | 44aa1ab0655283b67d6fdcb081803f25453dbc73 (diff) |
[ci skip] Fix patch for #5300
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 1619ec9a9..cd1d4a759 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1232,7 +1232,7 @@ class CI_Form_validation { if (function_exists('idn_to_ascii') && preg_match('#\A([^@]+)@(.+)\z#', $str, $matches)) { $variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : INTL_IDNA_VARIANT_2003; - $str = $matches[1].'@'.idn_to_ascii($matches[2], $variant); + $str = $matches[1].'@'.idn_to_ascii($matches[2], 0, $variant); } return (bool) filter_var($str, FILTER_VALIDATE_EMAIL); |