isValid("email") fails on examples from wikipedia

Description

Wikipedia has a list of sample email addresses
https://en.wikipedia.org/wiki/Email_address#Local-part

https://trycf.com/gist/7b8590667278453962df9783ccfc5abb/lucee5?theme=monokai

Lucee returns wrong results,

  • with quoted strings / double dots,

  • when the local part (before the @) exceeds 64 characters

Environment

None

Activity

Show:
Zac Spitzer
October 7, 2020, 2:06 PM
Edited

add two checks, local part can only be 64 characters, domain can only be 255 characters

Pothys - MitrahSoft
October 8, 2020, 8:49 AM

I've checked this ticket with lucee latest version 5.3.8.76-SNAPSHOT and made a test with as per the above examples and the issue was confirmed with quoted with double dots. And also checked with gmail, it doesn't allow this type of mail id ( quoted with double dots ).

Pothys - MitrahSoft
October 8, 2020, 8:51 AM

If we try with gmail means, it showing as per below image.

Pothys - MitrahSoft
October 9, 2020, 8:04 AM

I've added a test case for this ticket.

Pull request: https://github.com/lucee/Lucee/pull/1060

will confirm about this issue.

Assignee

Michael Offner

Reporter

Zac Spitzer

Priority

Minor

Labels

Fix versions

None

Affects versions

Configure