Hey,

Found where the problem is...

The email address [EMAIL PROTECTED] passes the initial validation from the form... but is checked again in the registration_tool... and doesn't pass the regex's in there... This is my educated guess... hope it helps.

Scott.


from CMFDefault.RegistrationTool.py

_TESTS = ( ( re.compile("[EMAIL PROTECTED]")
          , True
          , "Failed a"
          )
        , ( re.compile("^[^0-9a-zA-Z]|[^0-9a-zA-Z]$")
          , False
          , "Failed b"
          )
        , ( re.compile("([0-9a-zA-Z]{1})[EMAIL PROTECTED]")
          , True
          , "Failed c"
          )
        , ( re.compile(".\@([0-9a-zA-Z]{1})")
          , True
          , "Failed d"
          )
        , ( re.compile(".\.\-.|.\-\..|.\.\..|.\-\-.")
          , False
          , "Failed e"
          )
        , ( re.compile(".\.\_.|.\-\_.|.\_\..|.\_\-.|.\_\_.")
          , False
          , "Failed f"
          )
        , ( re.compile(".\.([a-zA-Z]{2,3})$|.\.([a-zA-Z]{2,4})$")
          , True
          , "Failed g"
          )
        )

def _checkEmail( address ):
   for pattern, expected, message in _TESTS:
       matched = pattern.search( address ) is not None
       if matched != expected:
           return False, message
   return True, ''



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to