From: hickert Date: Thu, 22 Dec 2005 06:51:35 +0000 (+0000) Subject: Image button posts different values in firefox and konqueror X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e7e38556438bb0eb9c8b157fbff962c1492eff9;p=gosa.git Image button posts different values in firefox and konqueror git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2367 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servRepositorySetup.inc b/plugins/admin/systems/class_servRepositorySetup.inc index c4456ec86..b83b68fd9 100644 --- a/plugins/admin/systems/class_servRepositorySetup.inc +++ b/plugins/admin/systems/class_servRepositorySetup.inc @@ -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;'") )); } diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index a5cfa2063..06207e5f3 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -384,7 +384,7 @@ class workstartup extends plugin $str_up = "  "; $str_down = "  "; $str_remove = "  "; - $str_empty = "  "; + $str_empty = "  \"\""; $i = 1; foreach($this->FAIclass as $class){ diff --git a/plugins/admin/systems/workstation.tpl b/plugins/admin/systems/workstation.tpl index a99333cab..4dbdad767 100644 --- a/plugins/admin/systems/workstation.tpl +++ b/plugins/admin/systems/workstation.tpl @@ -94,6 +94,6 @@