cvs: phpweb /include email-validation.inc

From: Date: Wed, 30 Jan 2002 18:34:08 +0000
Subject: cvs: phpweb /include email-validation.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8381@lists.php.net to get a copy of this message
jimw Wed Jan 30 13:34:08 2002 EDT Modified files: /phpweb/include email-validation.inc Log: deal with new long tlds Index: phpweb/include/email-validation.inc diff -u phpweb/include/email-validation.inc:1.6 phpweb/include/email-validation.inc:1.7 --- phpweb/include/email-validation.inc:1.6 Sun Jul 8 09:06:38 2001 +++ phpweb/include/email-validation.inc Wed Jan 30 13:33:56 2002 @@ -2,7 +2,7 @@ /* * email_validation.inc - * $Id: email-validation.inc,v 1.6 2001/07/08 13:06:38 goba Exp $ + * $Id: email-validation.inc,v 1.7 2002/01/30 18:33:56 jimw Exp $ */ // checks that is an *outside* host, and tries to remove anti-SPAM bits @@ -14,7 +14,7 @@ function is_emailable_address( $email) { $hosts_regex="lists\.php\.net|chek.*\.com"; $excluded_hosts = ereg($hosts_regex,$email); - $email_regex="^([-!#\$%&'*+./0-9=?A-Z^_a-z{|}~ ])+@([-!#\$%&'*+/0-9=?A-Z^_a-z{|}~ ]+\\.)+[a-zA-Z]{2,4}\$"; + $email_regex="^([-!#\$%&'*+./0-9=?A-Z^_a-z{|}~ ])+@([-!#\$%&'*+/0-9=?A-Z^_a-z{|}~ ]+\\.)+[a-zA-Z]{2,6}\$"; if (!$excluded_hosts && $email != "") { return eregi($email_regex, $email); } else {

« previous php.mirrors (#8381) next »