Code

Updated post handling for printers
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jul 2010 10:08:00 +0000 (10:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jul 2010 10:08:00 +0000 (10:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19105 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc

index e3663950cefdbe23839b61c2a577211efc0eb85a..ccebb737f7a970dbf4aefb03074afc4a5cab5a7c 100644 (file)
@@ -385,7 +385,7 @@ class printgeneric extends plugin
 
         /* Assign attributes */
         foreach ($this->attributes as $attr){
-            $smarty->assign("$attr", $this->$attr);
+            $smarty->assign("$attr", set_post($this->$attr));
         }
 
         $smarty->assign("base", $this->baseSelector->render());
@@ -564,7 +564,7 @@ class printgeneric extends plugin
                     $smarty->assign("driverInfo", "<b>".sprintf(_("Your currently selected PPD file '%s' doesn't exist."),$path.$this->gotoPrinterPPD)."</b>");
                 }else{
                     $ppdDesc = $ppdManager->loadDescription($path.$this->gotoPrinterPPD);
-                    $smarty->assign("driverInfo", $ppdDesc['name']);
+                    $smarty->assign("driverInfo", set_post($ppdDesc['name']));
                 }
             }else{
                 $smarty->assign("driverInfo", _("Not defined"));
@@ -1134,7 +1134,7 @@ class printgeneric extends plugin
     function saveCopyDialog()
     {
         if(isset($_POST['cn'])){
-            $this->cn = $_POST['cn'];
+            $this->cn = get_post('cn');
         }
     }