From 20d1209b0cdc95ffc2b4a8882a58c4c3631ae784 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:54 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 2.30.2