From 2ece1221183ac6f955604dc4a4dc786b678cffd7 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:16:02 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/environment/class_logonManagementDialog.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc b/gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc index 4eb4274a4..4b8c48ce0 100644 --- a/gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc +++ b/gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc @@ -45,8 +45,9 @@ class logonManagementDialog extends plugin $display= ""; if((isset($_POST['StartImport']))&&(isset($_FILES['importFile']))){ - $this->LogonData = file_get_contents($_FILES['importFile']['tmp_name']); - @unlink($_FILES['importFile']['tmp_name']); + $filename = gosa_file_name($_FILES['importFile']['tmp_name']); + $this->LogonData = file_get_contents($filename); + @unlink($filename); } foreach($this->attributes as $attr){ -- 2.30.2