Code

Updated handling of shared folder ACLs closes #1111
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Dec 2010 11:07:08 +0000 (11:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Dec 2010 11:07:08 +0000 (11:07 +0000)
-

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

index 217710e4a6ab555f1a4af93724f77f7aea76af04..31d47a81d006354d2845e5d68df2fb67816e10e9 100644 (file)
@@ -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;
       }