We have a member who is trying to register on the site using an email address that contains an apostrophe, but Umbraco is showing an 'invalid email' message. There seem to be some discussions on the web as to whether that is a valid email address, but the overwhelming majority of sources show that it is (not to mention the fact that I've exchanged emails with this person so it clearly works). This issue doesn't seem to be limited to Umbraco, as there are similar forum topics for other CMS.
Does anybody know of a way to modify how Umbraco validates email addresses without delving too far into its code? Is this a .Net issue?
In the mean time you could perhaps work around it by replacing the apostrophe with another character, which is currently valid? And then of course make sure to display it as an apostrophe if it should be displayed on a profile page for instance.
Could that be a possible workaround? Not sure where you would change the regex in the source code unfortunately.
Thanks for your reply. I'll give that a go, but I guess it needs to be something unique that wouldn't appear in real email addreses, so it can be replaced with the correct apostrophe when it comes to actually using that email.
Sorry for bumping this thread up - I've just had a client raise this same issue with me. I couldn't find it on the issue tracker - did it get posted on there? If not I'll happily submit it and if I get time work towards a fix.
Apostrophe in member's email address
We have a member who is trying to register on the site using an email address that contains an apostrophe, but Umbraco is showing an 'invalid email' message. There seem to be some discussions on the web as to whether that is a valid email address, but the overwhelming majority of sources show that it is (not to mention the fact that I've exchanged emails with this person so it clearly works). This issue doesn't seem to be limited to Umbraco, as there are similar forum topics for other CMS.
Does anybody know of a way to modify how Umbraco validates email addresses without delving too far into its code? Is this a .Net issue?
Thanks in advance for your help,
Joe
Hi Joe and welcome to our :)
I think you need to report this issue on the issue tracker here http://issues.umbraco.org/issues
In the mean time you could perhaps work around it by replacing the apostrophe with another character, which is currently valid? And then of course make sure to display it as an apostrophe if it should be displayed on a profile page for instance.
Could that be a possible workaround? Not sure where you would change the regex in the source code unfortunately.
/Jan
Jan,
Thanks for your reply. I'll give that a go, but I guess it needs to be something unique that wouldn't appear in real email addreses, so it can be replaced with the correct apostrophe when it comes to actually using that email.
I'll submit it on the issue tracker.
Joe
Hi Joe, Jan,
Sorry for bumping this thread up - I've just had a client raise this same issue with me. I couldn't find it on the issue tracker - did it get posted on there? If not I'll happily submit it and if I get time work towards a fix.
James
is working on a reply...