diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-06-27 14:06:06 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-06-27 14:06:06 +0200 |
commit | 384b34217b3709d3b3f11dbda3ac5c53274ff117 (patch) | |
tree | 72c5aaa6a144aeca49feb1a3b00d6e9b314d1ef7 /system/libraries/Email.php | |
parent | 13077951b63cf9858dc14ec9cab7f2b53ec88a3e (diff) |
Update other email validation methods
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r-- | system/libraries/Email.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index dd5477e05..5e6f69842 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -708,7 +708,7 @@ class CI_Email { */ public function valid_email($address) { - return (bool) preg_match('/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix', $address); + return filter_var($email, FILTER_VALIDATE_EMAIL); } // -------------------------------------------------------------------- |