summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-06-27 14:06:06 +0200
committerTimothy Warren <tim@timshomepage.net>2012-06-27 14:06:06 +0200
commit384b34217b3709d3b3f11dbda3ac5c53274ff117 (patch)
tree72c5aaa6a144aeca49feb1a3b00d6e9b314d1ef7 /system/libraries/Form_validation.php
parent13077951b63cf9858dc14ec9cab7f2b53ec88a3e (diff)
Update other email validation methods
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 8e03e91f3..9ef58724c 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1076,7 +1076,7 @@ class CI_Form_validation {
*/
public function valid_email($str)
{
- return (bool) preg_match('/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix', $str);
+ return filter_var($email, FILTER_VALIDATE_EMAIL);
}
// --------------------------------------------------------------------