Actions
Bug #11804
closed
SB
MV
WEmailValidator fails when domain name contains a hyphen
Bug #11804:
WEmailValidator fails when domain name contains a hyphen
Start date:
07/06/2023
Due date:
% Done:
100%
Estimated time:
Description
The new WEmailValidator introduced in Wt 4.10.0 does not allow hypens in the domain name.
Thus it rejects valid email adresses if they contain a hyphen in the domain name.
user@exampledomain.org > Is OK
user@example-domain.org > Is rejected (see screenshot attached)
I see this behavior in Firefox and MS Edge and it can be reproduced using the Email Edit section in Wt Widget Gallery.
Files
MV Updated by Matthias Van Ceulebroeck about 3 years ago
- Target version set to 4.10.1
This indeed is a bug. The regex that performs the validation is copied from the HTML standard, but there seems to be an issue with it.
MV Updated by Matthias Van Ceulebroeck about 3 years ago
- Status changed from New to InProgress
- Assignee set to Matthias Van Ceulebroeck
MV Updated by Matthias Van Ceulebroeck about 3 years ago
- Status changed from InProgress to Review
- Assignee deleted (
Matthias Van Ceulebroeck)
MV Updated by Matthias Van Ceulebroeck about 3 years ago
- Assignee set to Korneel Dumon
KD Updated by Korneel Dumon about 3 years ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Korneel Dumon to Matthias Van Ceulebroeck
MV Updated by Matthias Van Ceulebroeck about 3 years ago
- % Done changed from 0 to 100
MV Updated by Matthias Van Ceulebroeck almost 3 years ago
- Status changed from Implemented @Emweb to Closed
Actions