We have a user with following valid email address with apostrophe: jean.o’malley@xyz.com
This email address is not allowed in Joomla. I think the code should be changed to accept this.
I did fix it temporarily in core file, but this should be changed in a next release I think!
/libraries/joomla/mail/helper.php and replace:
$allowed = 'a-zA-Z0-9.!#$%&’*+/=?^_{|}~-'; ..with: $allowed = 'a-zA-Z0-9.!#$%&’*+\/=?^_
{|}~'-';
Using J3.5.6
Yes I have read it. But what should I notice. So the apostrophe is allowed. Valid email addresses are: #!$%&'*+-/=?^_`{}|~@example.org
So back to my original remark, Joomla should accept this apostrophe on email form.
Priority | Medium | ⇒ | Low |
Status | New | ⇒ | Needs Review |
Status | Needs Review | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-03 16:56:33 |
Closed_By | ⇒ | brianteeman |
Yes an apostrophe is allowed. However that means the correct asci key for an apostrophe and not just a key that looks like it.
Char Dec Hex Oct
` 96 60 140
' 39 27 47
’ 146 92 222
´ 180 B4 264
Here we can see four different characters that look like an apostrophe. The one you used in your example was 146
The only one that is an apostrophe is 39 and that is what Joomla is allowing as a valid character
Please read
https://en.wikipedia.org/wiki/Email_address#Local-part
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14695.