From: cajus Date: Tue, 16 Mar 2010 07:34:55 +0000 (+0000) Subject: Updated filter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=91e601414ed9848d0787875df8600e0c0cd362f7;p=gosa.git Updated filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16574 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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.