Code

updated something
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 11:34:19 +0000 (11:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 11:34:19 +0000 (11:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2381 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationStartup.inc

index 06207e5f36e024d33119ad3252e52e26e465b101..7748e2951745af000a9e613fb89eab9bd9123c48 100644 (file)
@@ -267,7 +267,7 @@ class workstartup extends plugin
       }
     
       if(($sort_type)&&(!$sort)){
-        $value = preg_replace("/_.*$/i","",preg_replace("/".$sort_type."/i","",$name));
+        $value = base64_decode(preg_replace("/_.*$/i","",preg_replace("/".$sort_type."/i","",$name)));
         $sort = true;
         
         $last = -1;
@@ -315,7 +315,7 @@ class workstartup extends plugin
   
 
       if(preg_match("/fai_remove/i",$name)){
-        $value = preg_replace("/_.*$/i","",preg_replace("/fai_remove_/i","",$name));
+        $value = base64_decode(preg_replace("/_.*$/i","",preg_replace("/fai_remove_/i","",$name)));
         unset($this->FAIclass[$value]);
       }
     }
@@ -399,7 +399,7 @@ class workstartup extends plugin
     
       $div->AddEntry(array(
                             array("string"=>$class),
-                            array("string"=>preg_replace("/\%s/",$class,$str),"attach"=>"style='width:50px;border-right:none;'")
+                            array("string"=>preg_replace("/\%s/",base64_encode($class),$str),"attach"=>"style='width:50px;border-right:none;'")
                           ));
     }