Page 1 of 1

Address book - special character in the email address

Posted: Wed Jul 23, 2014 2:14 pm
by gtuminauskas
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

Re: Address book - special character in the email address

Posted: Wed Jul 23, 2014 8:06 pm
by fischli
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.

Re: Address book - special character in the email address

Posted: Fri Jul 25, 2014 10:11 am
by mschering
Those characters are not allowed in email addresses.