Code

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

gosa-plugins/goto/addons/goto/class_goto_import_file.inc

index e03c3d000cafc8b30700da2f6fde4cb887dc5b75..5b0795a4856ed219918793e50bf45aef9cde8b30 100644 (file)
@@ -65,7 +65,8 @@ class goto_import_file extends plugin
          */
         if(isset($_POST['import']) && isset($_FILES['file'])) {
             if(isset($_FILES['file']['tmp_name'])){
-                $str = file_get_contents($_FILES['file']['tmp_name']);
+                $filename = $_FILES['file']['tmp_name'];
+                $str = file_get_contents(gosa_file_name($filename));
                 $this->parse_csv($str);
             }
         }