summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-06-14 20:56:36 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-06-14 20:56:36 +0200
commitfb56cdb3efd11f4ec6cf053b8f04cc51a7d3bd4e (patch)
treefd81b4a7064f3dba7bdfadbd7a29424539cef324 /system/libraries/Form_validation.php
parentf34668f94b6a69fa777c6025ccc798b5e3c1110f (diff)
parent30e2eafa86c4c7b6b39cea3e7089a90df9f603fb (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.php6
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);