[Pkg-owncloud-commits] [owncloud] 37/73: LDAP: transliterate other latin characters to ASCII when creating owncloud names. Already created usernames are not being affected. Fixes ugly names with removed Umlauts, chars with accents and likes.
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:05 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.
commit 0f489e80ad6b2a6e042f7e2d6b479341b04ec4bc
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Tue Sep 18 17:10:21 2012 +0200
LDAP: transliterate other latin characters to ASCII when creating owncloud names. Already created usernames are not being affected. Fixes ugly names with removed Umlauts, chars with accents and likes.
---
apps/user_ldap/lib_ldap.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index 7f7d403..9af22bc 100644
--- a/apps/user_ldap/lib_ldap.php
+++ b/apps/user_ldap/lib_ldap.php
@@ -588,6 +588,10 @@ class OC_LDAP {
return $name;
}
+ // Translitaration
+ //latin characters to ASCII
+ $name = iconv('UTF-8', 'ASCII//TRANSLIT', $name);
+
//REPLACEMENTS
$name = str_replace(' ', '_', $name);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list