includes/sessions.php
changeset 504 bc8e0e9ee01d
parent 499 6b7fdd898ba3
child 507 586fd7d3202d
--- a/includes/sessions.php	Sat Mar 15 14:19:18 2008 -0400
+++ b/includes/sessions.php	Sun Mar 16 16:06:59 2008 -0400
@@ -2269,8 +2269,7 @@
       // E-mail addy
       if(is_string($email))
       {
-        // I didn't write this regex.
-        if(!preg_match('/^(?:[\w\d]+\.?)+@((?:(?:[\w\d]\-?)+\.)+\w{2,4}|localhost)$/', $email))
+        if(!check_email_address($email))
           $errors[] = 'The e-mail address you entered is invalid.';
         $strs[] = 'email=\''.$db->escape($email).'\'';
       }