From e0b4e2538a88c46a6ca6ea330619c47c1ec67733 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 15 Dec 2010 11:07:08 +0000 Subject: [PATCH] Updated handling of shared folder ACLs closes #1111 - git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20565 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/mail/admin/groups/mail/class_groupMail.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc index 217710e4a..31d47a81d 100644 --- a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc +++ b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc @@ -96,12 +96,11 @@ class mailgroup extends plugin $ldap = $this->config->get_ldap_link(); if(isset($this->attrs['acl'])){ for($i = 0; $i < $this->attrs['acl']['count'] ; $i++){ - $str = trim($this->attrs['acl'][$i]); /* Be carefull here, since kolab22 uses spaces in the acls (herbert read anon/post) */ - $name = trim(preg_replace("/^([^\s]*).*$/","\\1",$str)); - $acl = trim(preg_replace("/^[^\s]*+\s/","",$str)); + $str = $this->attrs['acl'][$i]; + list($name, $acl) = preg_split("/[ ]{1}/", $str, 2); if($name == "anyone") $name = "__anyone__"; $this->folder_acls[$name] = $acl; } -- 2.30.2