Skip to content

Formit email validation fails if email address includes an apostrophe [single quote]  #266

@deJaya

Description

@deJaya

Bug report

Summary

According to RFC 3696 - apostrophes are valid characters in an email address, at least before the @ sign.

Formit’s email validation appears to disagree and flags such an address as invalid.

Suggestions as to the cause, and a workaround, are here.

Step to reproduce

Set up a form featuring an email field and try to submit an email address which includes an apostrophe.

Observed behavior

Formit's validation will flag the email address as invalid.

Expected behavior

Email addresses with apostrophes are valid and should be accepted.

Environment

Apache / MODX 2.8.4-pl Formit 4.2.7-pl PHP 8.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions