summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95da2e8)
raw | patch | inline | side by side (parent: 95da2e8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Mar 2010 10:40:58 +0000 (10:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Mar 2010 10:40:58 +0000 (10:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16375 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_userFilter.inc | patch | blob | history |
index 5e34c36f1b5cd78467f28386effe7dd8a2628ba0..50e9e58e4755d4ce8995264719c26a3a9f00d2f9 100644 (file)
// Remove line breaks from the filter, which may were added for better reading.
$c = preg_split('/\n/',$tmp['filter']);
+
foreach($c as $key => $str) $c[$key] = trim($str);
$tmp['filter'] = implode($c);
// ... and enabled.
$visible = in_array('enable', $tmp['flags']) &&
($attrs['dn'] == $ui->dn || in_array('share', $tmp['flags']));
-
+
+ // Convert filter encoding
+ $tmp['filter'] = utf8_encode($tmp['filter']);
+
// Add filter if it matches the category list
if($visible && (count($category) == 0 || array_intersect($category, $tmp['categories']))){
$filter[$tmp['name']] = $tmp;