summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53385e1)
raw | patch | inline | side by side (parent: 53385e1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Aug 2010 15:06:41 +0000 (15:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Aug 2010 15:06:41 +0000 (15:06 +0000) |
-Remove accents before creation uid proposals for user-templates
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19483 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19483 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index f2e0a911188473df929eb75268d8d6f0b92cd0e3..7dceb91c9beb2acb9bde333a8d247e44aabb742c 100644 (file)
{
global $config;
+ // Strip out non ascii chars
+ foreach($attributes as $name => $value){
+ $value = iconv('UTF-8', 'US-ASCII//TRANSLIT', $value);
+ $value = preg_replace('/[^(\x20-\x7F)]*/','',$value);
+ $attributes[$name] = $value;
+ }
+
/* Search for keys and fill the variables array with all
possible values for that key. */
$part= "";