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 e03c3d000cafc8b30700da2f6fde4cb887dc5b75..5b0795a4856ed219918793e50bf45aef9cde8b30 100644 (file)
*/
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);
}
}