From 91e601414ed9848d0787875df8600e0c0cd362f7 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 16 Mar 2010 07:34:55 +0000 Subject: [PATCH] Updated filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16574 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 666443e5d..57057165b 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -260,7 +260,11 @@ class filter { // Handle converters if present if ($this->converter) { preg_match('/([^:]+)::(.*)$/', $this->converter, $m); - $filter= call_user_func(array($m[1], $m[2]), preg_replace('/\$/', $this->value, $filter)); + if ($this->value == "") { + $filter= call_user_func(array($m[1], $m[2]), preg_replace('/\$/', "*", $filter)); + } else { + $filter= call_user_func(array($m[1], $m[2]), preg_replace('/\$/', $this->value, $filter)); + } } // Do not replace escaped \$ - This is required to be able to search for e.g. windows machines. -- 2.30.2