From 99736fbfbdd8cd4166c8db5655c90f01581a934d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 1 Jun 2010 12:12:37 +0000 Subject: [PATCH] Updated saving of dyngroups -Add brackets if missing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dyngroup/addons/dyngroup/classDynamicLdapGroup.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc b/gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc index 28ebd67b0..6fcf63bb4 100644 --- a/gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc +++ b/gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc @@ -240,7 +240,9 @@ class DynamicLdapGroup extends plugin $this->labeledURI = array(); foreach($this->labeledURIparsed as $entry){ $scope = $this->scopes[$entry['scope']]; - $this->labeledURI[] = "{$entry['base']}?{$entry['attr']}?{$scope}?{$entry['filter']}"; + $filter = $entry['filter']; + $filter = '('.trim($filter, '() ').')'; + $this->labeledURI[] = "{$entry['base']}?{$entry['attr']}?{$scope}?{$filter}"; } $this->labeledURI = array_unique($this->labeledURI); -- 2.30.2