From: hickert Date: Tue, 1 Jun 2010 12:12:37 +0000 (+0000) Subject: Updated saving of dyngroups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=99736fbfbdd8cd4166c8db5655c90f01581a934d;p=gosa.git Updated saving of dyngroups -Add brackets if missing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);