]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: transliterate other latin characters to ASCII when creating owncloud names...
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 27 Aug 2012 19:32:32 +0000 (21:32 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 27 Aug 2012 19:32:56 +0000 (21:32 +0200)
apps/user_ldap/lib/access.php

index ec3b5264915c873b9dcce3695f561e2f61a2acb1..68df4c4cb93644e30a28dc05ea547ea744bbc091 100644 (file)
@@ -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');