LDAP: transliterate other latin characters to ASCII when creating owncloud names. Already created usernames are not being affected.
This commit is contained in:
parent
84a5faff36
commit
5985d00c6f
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue