Code

Updated department list, allow editing entries with / in base64_encoded POST id
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 31 Aug 2007 07:03:13 +0000 (07:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 31 Aug 2007 07:03:13 +0000 (07:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7173 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc
plugins/admin/departments/class_divListDepartment.inc

index 7c580063c794b0ef4ba8a6ceadcb36274a175bf3..05aa89ebc83ca0837391799b8dac594d50028da4 100644 (file)
@@ -492,7 +492,7 @@ class departmentManagement extends plugin
   {
     $ids = array();
     foreach($_POST as $name => $value){
-      if(preg_match("/^item_selected_[a-z0-9\=]*$/i",$name)){
+      if(preg_match("/^item_selected_[a-z0-9\\/\=]*$/i",$name)){
         $id   = preg_replace("/^item_selected_/","",$name);
         $ids[$id] = $id;
       }
index 6d6595ace93a0e93a85a06f7b9a11ab6362c0dc5..6e1c66765769217a37791d04777967940161adda 100755 (executable)
@@ -40,7 +40,7 @@ class divListDepartment extends MultiSelectWindow
 
    /* Toggle all selected / deselected */
     $chk = "<input type='checkbox' id='select_all' name='select_all'
-               onClick='toggle_all_(\"^item_selected_[a-zA-Z0-9\=]*$\",\"select_all\");' >";
+               onClick='toggle_all_(\"^item_selected_[a-zA-Z0-9\\/\=]*$\",\"select_all\");' >";
 
     /* set Page header */
     $this->AddHeader(array("string"=> $chk,          "attach"=>"style='width:20px;'"));