This question may be related to a resolved thread.
Is there any p[ossible way to allow usernames or emails to contain apostrophe’s?
The thread above says “
| ” ’ !
are reserved characters. “
But I have some emails/usernames ie: O’Leary. This is in their functioning email and username. IS there any way I can allow the use of apostrophe’s in emails and usernames?
/** ----------------------------------
/** Is username formatting correct?
/** ----------------------------------*/
// Reserved characters: | " ' !
if (preg_match("/[\||\'|\"|\!]/", $this->username))
{
$this->errors[] = $LANG->line('invalid_characters_in_username');
}So in brief -
| ” ’ !
are reserved characters.