From cb659700017fb0d187bcc2fafecff2514b1fd77b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Dec 2005 12:46:45 +0000 Subject: [PATCH] ;.-_ aso are now allowed in FAIprofileEntry git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2364 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiProfileEntry.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/admin/fai/class_faiProfileEntry.inc b/plugins/admin/fai/class_faiProfileEntry.inc index 80eccee5b..f44cd0adf 100644 --- a/plugins/admin/fai/class_faiProfileEntry.inc +++ b/plugins/admin/fai/class_faiProfileEntry.inc @@ -104,8 +104,9 @@ class faiProfileEntry extends plugin /* Check if we used a checkboxe from the list, to select dselect an entry */ foreach($_POST as $name => $value){ foreach($this->FAIAllclasses as $class => $obj){ - if(isset($_POST["ON_PAGE_".$class])){ - if(isset($_POST['USE_'.$class])){ + $bclass = base64_encode($class); + if(isset($_POST["ON_PAGE_".$bclass])){ + if(isset($_POST['USE_'.$bclass])){ $this->FAIAllclasses[$class]['status']=true; }else{ $this->FAIAllclasses[$class]['status']=false; @@ -199,7 +200,7 @@ class faiProfileEntry extends plugin } /* Append to list */ - $field1 = array("string"=> preg_replace("/%KEY%/",$usedClass,$action_check).$usedClass,"attach"=>""); + $field1 = array("string"=> str_replace("%KEY%",base64_encode($usedClass),$action_check).$usedClass,"attach"=>""); $field2 = array("string"=> $str,"attach"=>"style='border-right:0px;'"); $divlist->AddEntry(array($field1,$field2)); } -- 2.30.2