?
avatar ptrouw
ptrouw
17 Mar 2017

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

avatar ptrouw ptrouw - open - 17 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Mar 2017
avatar ptrouw ptrouw - change - 17 Mar 2017
The description was changed
avatar ptrouw ptrouw - edited - 17 Mar 2017
avatar ptrouw ptrouw - change - 17 Mar 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 18 Mar 2017
avatar ptrouw
ptrouw - comment - 18 Mar 2017

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14695.

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Priority Medium Low
Status New Needs Review
avatar brianteeman brianteeman - change - 3 Oct 2017
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2017-10-03 16:56:33
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Oct 2017
avatar brianteeman
brianteeman - comment - 3 Oct 2017

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

Add a Comment

Login with GitHub to post a comment