Code

Removed labeledUri = labeledURI fix
[gosa.git] / plugins / admin / systems / class_servRepositorySetup.inc
index 9330f48317b37d0917a92ec3e25ba70ed556551a..b83b68fd98c8272a19bed7bd1c99962130c85d3a 100644 (file)
@@ -65,8 +65,12 @@ class servRepositorySetup  extends plugin
     
     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]);
         }
       }
     }
@@ -79,7 +83,7 @@ class servRepositorySetup  extends plugin
     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;'")
                               ));
     }
   
@@ -140,7 +144,7 @@ class servRepositorySetup  extends plugin
     while($attr = $ldap->fetch()){
       $ret[$attr['cn'][0]]= $attr['cn'][0];   
     }
-    $ret['none']= "";
+    $ret['none']= " ";
     return($ret);
   }