Actions
Bug #11804
closedWEmailValidator 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
Updated by Matthias Van Ceulebroeck over 1 year 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.
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from New to InProgress
- Assignee set to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from InProgress to Review
- Assignee deleted (
Matthias Van Ceulebroeck)
Updated by Matthias Van Ceulebroeck over 1 year ago
- Assignee set to Korneel Dumon
Updated by Korneel Dumon over 1 year ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Korneel Dumon to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck over 1 year ago
- % Done changed from 0 to 100
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from Implemented @Emweb to Closed
Actions