valid email address not passing validation regex

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/5/2008 6:09:23 AM
Gravatar
Total Posts 43

valid email address not passing validation regex

Hi,

I'm attempting to create a user with an apostrophe in their email address. The user in question has a name similar to O'Reilly and their email address, which is perfectly valid, has an apostrophe in it.

Mojoportal provides the error message "Must use a valid email address."

The email address validation regular expression should be updated to allow a single apostrophe.

All the best,

Kenny

 

 

8/5/2008 7:58:20 AM
Gravatar
Total Posts 18439

Re: valid email address not passing validation regex

Hi Kenny,

I've fixed this and it wil be in svn trunk by tonight.

For an immediate fix you can set the RegexValidationExpression on the Validator in ManageUsers.aspx and in Register.aspx to this:

^([0-9a-zA-Z](['-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w']*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$

Best,

Joe

8/5/2008 8:13:50 AM
Gravatar
Total Posts 43

Re: valid email address not passing validation regex

Hi Joe,

Much appreciate the new regex - will update this in our mojoportal.

Cheers,

Kenny

You must sign in to post in the forums. This thread is closed to new posts.