From: hickert Date: Wed, 17 Nov 2010 09:15:54 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20d1209b0cdc95ffc2b4a8882a58c4c3631ae784;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20253 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc index fa72e7110..f4e7e8d63 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc @@ -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{