summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a3dca9)
raw | patch | inline | side by side (parent: 6a3dca9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Aug 2010 15:04:34 +0000 (15:04 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Aug 2010 15:04:34 +0000 (15:04 +0000) |
-It wasn't able handle accents
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19481 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19481 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index 33ef64f6d9e74e17a808805f4d159b4a5cbaa706..d87a157c16dfc3bbc610a60c8e320776226597aa 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= "";