From b49634f038ef6f3ac06e392625ea0eae57265ed0 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 2 Mar 2010 00:07:16 +0000 Subject: [PATCH] + and ^ are special cases, need to go at the beginning of a [] --- common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.inc.php b/common.inc.php index b2a33f6..7304be5 100644 --- a/common.inc.php +++ b/common.inc.php @@ -872,7 +872,7 @@ function outputStatus($status) //returns true if its a valid email address, false if its not function isEmailAddress($str) { - if(eregi('^[a-zA-Z0-9._-+]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $str)) + if(eregi('^[+a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $str)) return true; else return false;