From 7d08cf4f817f94ff59e62a4086b0ecf34b26f667 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:11 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.30.2