diff --git a/plugins/admin/systems/class_servRepositorySetup.inc b/plugins/admin/systems/class_servRepositorySetup.inc
index 9330f48317b37d0917a92ec3e25ba70ed556551a..b83b68fd98c8272a19bed7bd1c99962130c85d3a 100644 (file)
foreach($_POST as $name => $value){
if(preg_match("/^delete_/",$name)){
- if(isset($this->Sections[$value])){
- unset($this->Sections[$value]);
+
+ $val = preg_replace("/^delete_/","",$name);
+ $val = base64_decode(preg_replace("/_.*$/","",$val));
+
+ if(isset($this->Sections[$val])){
+ unset($this->Sections[$val]);
}
}
}
foreach($this->Sections as $sec){
$divlist->AddEntry(array(
array("string"=>$sec),
- array("string"=>sprintf($dellink,$sec,$sec),"attach"=>"style='border-right:0px;width:20px;'")
+ array("string"=>sprintf($dellink,base64_encode($sec),$sec),"attach"=>"style='border-right:0px;width:20px;'")
));
}
while($attr = $ldap->fetch()){
$ret[$attr['cn'][0]]= $attr['cn'][0];
}
- $ret['none']= "";
+ $ret['none']= " ";
return($ret);
}