Code

Removed base64 encoding from hotplug id's
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 11:54:12 +0000 (11:54 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Oct 2005 11:54:12 +0000 (11:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1486 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/class_hotplugDialog.inc

index b4bf126a18b7e9bb9478ab0469075f7657aa7fca..372c6b7e1bde2bb21b0c203c2dbc68d5f2d439b9 100644 (file)
@@ -824,7 +824,7 @@ class environment extends plugin
     /* Prepare HotPlug devices */
     $this->attrs['gotoHotplugDevice'] = array();
     foreach($this->gotoHotplugDevices as $name => $device){
-      $this->attrs['gotoHotplugDevice'][] = $device['name']."|".$device['description']."|".base64_encode($device['id']);
+      $this->attrs['gotoHotplugDevice'][] = $device['name']."|".$device['description']."|".$device['id'];
     }
 
     /* Prepare LogonScripts */
index 63ad92877edb946b96c136ff469cc130bcec1ad6..d5ecf2742b26da1163a54aeb0e0d311a51f5e521 100644 (file)
@@ -164,11 +164,11 @@ class hotplugDialog extends plugin
           $tmp = split("\|",$device);
           
           if(preg_match("/^".str_replace("*","",$this->regex).".*/i",$tmp[0])){
-            $a_return[$tmp[0]]= $tmp[0]." [".$tmp[1]."] ".base64_decode($tmp[2]);
+            $a_return[$tmp[0]]= $tmp[0]." [".$tmp[1]."] ".$tmp[2];
             
             $tmp2['name']         = $tmp[0];
             $tmp2['description'] = $tmp[1];
-            $tmp2['id']           = base64_decode($tmp[2]);
+            $tmp2['id']           = $tmp[2];
 
             $this->hotplugDeviceList[$tmp[0]]=$tmp2;
           }