summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6ede24)
raw | patch | inline | side by side (parent: a6ede24)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Dec 2010 16:53:44 +0000 (16:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Dec 2010 16:53:44 +0000 (16:53 +0000) |
-Acl entries with special chars could not be deleted
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20546 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20546 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 51a105717cf122c69d1b69ae3ecba7efb0174f29..aa453044596b6348131cc59e17e809657f1c74a5 100644 (file)
var $orig_cn = "";
var $show_effective_memeber = FALSE;
+ var $aclPostToId = array();
+
function __construct (&$config, $dn= NULL, $base_object= NULL)
{
plugin::plugin($config, $dn);
foreach($this->folder_acls as $user => $acl){
- if(get_magic_quotes_gpc()){
- $pname = addslashes($user);
- }else{
- $pname = $user;
- }
if($user == "__member__" || $user == "__anyone__") continue;
- if(isset($_POST['remove_acl_user_'.$pname])){
- }elseif(isset($_POST['acl_user_'.$pname])){
- if($user != get_post('acl_user_'.$pname)){
- $new_acls[get_post('acl_user_'.$pname)] = get_post('acl_value_'.$pname);
+ $id = $this->aclPostToId[$user];
+ if(isset($_POST['remove_acl_user_'.$id])){
+ }elseif(isset($_POST['acl_user_'.$id])){
+ if($user != get_post('acl_user_'.$id)){
+ $new_acls[get_post('acl_user_'.$id)] = get_post('acl_value_'.$id);
}else{
- $new_acls[$user] = get_post('acl_value_'.$pname);
+ $new_acls[$user] = get_post('acl_value_'.$id);
}
}else{
$new_acls[$user] = $acl;
function postable_acls()
{
$ret = array();
+ $this->aclPostToId = array();
foreach($this->folder_acls as $name => $acl){
- $ret[set_post($name)] = array("name" => set_post($name),"acl" => set_post($acl),"post_name" => set_post($name));
+ $id = count($this->aclPostToId);
+ $this->aclPostToId[$name] = $id;
+ $ret[set_post($name)] = array("name" => set_post($name),"acl" => set_post($acl),"post_name" => $id);
}
return($ret);
}