Skip to content
Snippets Groups Projects
Commit 751bcceb authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #650 from greezybacon/issue/383


i18n: Allow Unicode characters in the username

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents a76e6cb4 3eea0436
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ class Validator {
function is_username($username, &$error='') {
if (strlen($username)<2)
$error = 'At least two (2) characters';
elseif (!preg_match('/^[\w._-]+$/', $username))
elseif (!preg_match('/^[\p{L}._-]+$/u', $username))
$error = 'Username contains invalid characters';
return $error == '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment