This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

This field is not in the correct email format.


  1. ThomasK
    Member

    test+test@test.com
    This field is not in the correct email format.

    Well i thought the adress was wrong too, but then i looked it up:
    http://en.wikipedia.org/wiki/Email_address
    "Conversely, many websites make the mistake of checking email addresses too strictly, rejecting addresses containing perfectly valid characters like + or / signs."

    Regards

    Posted 16 years ago #
  2. yuniar

    Here is a fix. Edit your "includes/common-validator.php" file.
    Search around line 210 and you'll find this:

    $regex  = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]*\.[A-z0-9]{2,6}$/';

    replace it with this one:

    $regex  = '/^[A-z0-9][\+\/\w.-]*@[A-z0-9][\w\-\.]*\.[A-z0-9]{2,6}$/';

    That should pass the "+" and "/" characters.


    MachForm Founder

    Posted 16 years ago #
  3. ThomasK
    Member

    Thx for the fix - it works :)

    Regards

    Posted 16 years ago #

RSS feed for this topic

Reply