Skip to content
Snippets Groups Projects
Commit 5985d00c authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: transliterate other latin characters to ASCII when creating owncloud...

LDAP: transliterate other latin characters to ASCII when creating owncloud names. Already created usernames are not being affected.
parent 84a5faff
Branches
No related tags found
No related merge requests found
......@@ -564,6 +564,10 @@ abstract class Access {
return $name;
}
// Translitaration
//latin characters to ASCII
$name = iconv('UTF-8', 'ASCII//TRANSLIT', $name);
//REPLACEMENTS
$name = \OCP\Util::mb_str_replace(' ', '_', $name, 'UTF-8');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment