LDAP: transliterate other latin characters to ASCII when creating owncloud names. Already created usernames are not being affected.

remotes/origin/stable45
Arthur Schiwon 12 years ago
parent 84a5faff36
commit 5985d00c6f
  1. 4
      apps/user_ldap/lib/access.php

@ -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…
Cancel
Save