Code

Updated handling of uploaded files, thanks to bcooksley
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Nov 2010 09:15:54 +0000 (09:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Nov 2010 09:15:54 +0000 (09:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20253 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc

index fa72e71108b08fd76a4430bbad8ae6c0ad4f24b8..f4e7e8d634bfba343cb9065b0484b1af098b246b 100644 (file)
@@ -133,7 +133,7 @@ class printerPPDDialog extends plugin
             if((isset($_FILES['NewPPDFile']))&&(isset($_POST['SubmitNewPPDFile']))){
                 $file = ($_FILES['NewPPDFile']);
                 if($file['size'] != 0 ){
-                    if($name = $this->AddPPD($file['tmp_name'])){
+                    if($name = $this->AddPPD(gosa_file_name($file['tmp_name']))){
                         $this->SelectPPD($name); 
                     }
                 }else{