summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07bb769)
raw | patch | inline | side by side (parent: 07bb769)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Dec 2010 10:26:49 +0000 (10:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Dec 2010 10:26:49 +0000 (10:26 +0000) |
- The acl were parsed in a wrong way. The "none" acl lead to "hickert@gonicus.de hickert@gonicus.de" instead of "hickert@gonicus.de ".
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20563 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20563 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/admin/groups/mail/class_groupMail.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc
index 13ff9984d9ead6c8348834fc8cef7cdcc565894b..85df964d322317600d9675a1f600bc2409264d55 100644 (file)
$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;
}