From: hickert Date: Wed, 17 Nov 2010 09:15:11 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d08cf4f817f94ff59e62a4086b0ecf34b26f667;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20242 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/goto/class_goto_import_file.inc b/gosa-plugins/goto/addons/goto/class_goto_import_file.inc index e03c3d000..5b0795a48 100644 --- a/gosa-plugins/goto/addons/goto/class_goto_import_file.inc +++ b/gosa-plugins/goto/addons/goto/class_goto_import_file.inc @@ -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); } }