Address book - special character in the email address

Get help from the community here.

Moderator: Developers

gtuminauskas
Posts: 20
Joined: Tue Jun 24, 2014 4:32 pm
Location: London, UK
Contact:

Address book - special character in the email address

Postby gtuminauskas » Wed Jul 23, 2014 2:14 pm

Hi,

GO 5.0.65 community version

I just have tried to enter an email address into address book with special character - apostrophe
e.g.: o'reilly@example.com
The problem is that I cannot enter that special character (an apostrophe) at all. Probably many other special characters are not allowed to be entered, though it is acceptable by RFC standards.

How can it be fixed? Can I fix it myself?

Giedrius
fischli
Posts: 36
Joined: Tue Apr 22, 2014 10:06 am

Re: Address book - special character in the email address

Postby fischli » Wed Jul 23, 2014 8:06 pm

Take a look at views/Extjs3/javascript/overrides.js around line 388.

Code: Select all

Ext.apply(Ext.form.VTypes, {
    emailAddress:  function(v) {
		var email = /^[_a-z0-9\-+\&]+(\.[_a-z0-9\-+\&]+)*@[a-z0-9\-]+(\.[a-z0-9\-]+)*(\.[a-z]{2,100})$/i;
        return email.test(v);
    },
    emailAddressText: Ext.form.VTypes.emailText,
    emailAddressMask: /[a-z0-9_\.\-@\+\&]/i
});
You may add more characters to the mask, but don't forget to adjust the test.
mschering
Site Admin
Site Admin
Posts: 8318
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Address book - special character in the email address

Postby mschering » Fri Jul 25, 2014 10:11 am

Those characters are not allowed in email addresses.
Best regards,

Merijn Schering
Intermesh

Who is online

Users browsing this forum: No registered users and 5 guests