Try to create a user with an apostrophe (single straight quote ' ), in the username part of the email like DeloresO'Grady@example.com
Email is accepted.
Email is declared invalid.
This was previously (in 2016) discussed here: #6982
And fixed here: #12835
But the email validation regex in media/system/fields/js/validate is currently set to not allow '
this.setHandler('email', value => {
const newValue = punycode.toASCII(value);
const regex = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
return regex.test(newValue);
});
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Information Required
|
Problem confirmed in Joomla 5.0
Labels |
Added:
bug
|
very strange that its passing the specific unit test for this tests\Unit\Libraries\Cms\Mail\MailHelperTest.php
To be clear this is a js validation error and not a server side error. Hence the unit test passes.
An email with a smart (not straight) apostrophe (eg o’reilly@there.com) passes js validation and fails on save.
Labels |
Removed:
Information Required
|
Which Joomla version are you using?