diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-06-14 20:56:36 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-06-14 20:56:36 +0200 |
commit | fb56cdb3efd11f4ec6cf053b8f04cc51a7d3bd4e (patch) | |
tree | fd81b4a7064f3dba7bdfadbd7a29424539cef324 /system/libraries/Form_validation.php | |
parent | f34668f94b6a69fa777c6025ccc798b5e3c1110f (diff) | |
parent | 30e2eafa86c4c7b6b39cea3e7089a90df9f603fb (diff) |
Merge tag '3.1.9' of git://github.com/bcit-ci/CodeIgniter into dev
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 6a97ee599..27187df2c 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1234,7 +1234,11 @@ class CI_Form_validation { $domain = defined('INTL_IDNA_VARIANT_UTS46') ? idn_to_ascii($matches[2], 0, INTL_IDNA_VARIANT_UTS46) : idn_to_ascii($matches[2]); - $str = $matches[1].'@'.$domain; + + if ($domain !== FALSE) + { + $str = $matches[1].'@'.$domain; + } } return (bool) filter_var($str, FILTER_VALIDATE_EMAIL); |