From: cajus Date: Sun, 2 May 2010 17:23:38 +0000 (+0000) Subject: Removed split X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=edcb81f950e60df78870022f13f897356eb8a31d;p=gosa.git Removed split git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18017 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userFilter.inc b/gosa-core/include/class_userFilter.inc index 2c4a5649b..b1ee82247 100644 --- a/gosa-core/include/class_userFilter.inc +++ b/gosa-core/include/class_userFilter.inc @@ -62,13 +62,13 @@ class userFilter extends plugin */ static function explodeFilterString($filterStr) { - list($parent,$categories, $name, $description, $filterList, $flags) = split(";", $filterStr); + list($parent,$categories, $name, $description, $filterList, $flags) = preg_split('/;/', $filterStr); // Ensure that we no empty category in our category list. if(empty($categories)){ $categories = array(); }else{ - $categories = split(',', $categories); + $categories = preg_split('/,/', $categories); } // Ensure that we no empty entry in out flags list. @@ -80,7 +80,7 @@ class userFilter extends plugin // Get filters and their backends $queries = array(); - foreach(split(",", $filterList) as $data){ + foreach(preg_split('/,/', $filterList) as $data){ if(!empty($data)){ list($filter, $backend) = preg_split('/:/', $data); $queries[] = array('backend' => $backend, 'filter' => base64_decode($filter));