Code

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

gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc

index 4eb4274a4ab04afd187db609f839dc14cf5ec20d..4b8c48ce06648326d8dcec5f3eaec86af87cbd2f 100644 (file)
@@ -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){