Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

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

Open deJaya opened 2 years ago

deJaya commented 2 years ago

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