You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new account and the user has an apostrophe in their name, the user validation fails and the user can't be created.
The address is valid, as per RFC 2822, I can't be the only Irishman who struggles with this, daily?
The text was updated successfully, but these errors were encountered:
I'd like to say it was a conspiracy by the English to further oppress those from The Land of the Bogs and the Little People, but sadly I think it predates any English involvement in the project, so on this point we're blameless.
The current email validation regex is @"^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,63}$"
I think this could actually be simplified by replacing [A-Za-z0-9] with something more inclusive (far more chars are allowed, as you point out), which would get rid of the need for some of the repetition.
I've tested it online and it works with my address and some others I tried out.
Once caveat I'm sure you're aware of is that if you're passing the email address round in javascript, you'll need to sanitise your output to prevent possible SQL injection attacks.
igoryok-zp
added a commit
to igoryok-zp/Bonobo-Git-Server
that referenced
this issue
Sep 22, 2017
When creating a new account and the user has an apostrophe in their name, the user validation fails and the user can't be created.
The address is valid, as per RFC 2822, I can't be the only Irishman who struggles with this, daily?
The text was updated successfully, but these errors were encountered: