I added '+' character to the list of allowed chars in on the left side of an email address. This permits email addresses like [EMAIL PROTECTED], which some people use to flag the source of spam.

New code:
function COM_isemail( $email )
{
if( eregi( "^([-_0-9a-z+])+([-._0-9a-z+])[EMAIL PROTECTED]([-.]?[0-9a-z])*.[a-z]{2,3}$", $email, $check ))
          // was:
// if( eregi( "^([-_0-9a-z])+([-._0-9a-z])[EMAIL PROTECTED]([-.]?[0-9a-z])*.[a-z]{2,3}$", $email, $check ))
    {
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}

Reply via email to