|
From: Benjamin C. <bc...@us...> - 2002-04-01 15:42:46
|
Update of /cvsroot/phpbt/phpbt/inc In directory usw-pr-cvs1:/tmp/cvs-serv16912/inc Modified Files: functions.php Log Message: Changed the name of the valid_email function to reduce conflicts and changed the validation regex to allow longer TLDs Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- functions.php 29 Mar 2002 23:55:14 -0000 1.14 +++ functions.php 1 Apr 2002 15:42:41 -0000 1.15 @@ -292,8 +292,8 @@ /// /// Check the validity of an email address /// (From zend.com user russIndr) -function valid_email($email) { - return eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$', $email); +function bt_valid_email($email) { + return eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$', $email); } /// |