From: hickert Date: Wed, 17 Nov 2010 09:16:02 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ece1221183ac6f955604dc4a4dc786b678cffd7;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){