index 2c4a5649b1ee22ebe44782f8c7a6d40da5642d33..b1ee8224726524993d36f576a5a0143750d94b8a 100644 (file)
*/
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.
// 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));