From c357434a1356be38f39906478354ff451367eae8 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:28 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20246 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/ConfigManagement/class_TemplateWidget_file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc index 4c26fe32e..1e41cd9be 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc @@ -25,7 +25,7 @@ class TemplateWidget_file extends TemplateWidget function save_object() { if(isset($_POST["{$this->postName}_Upload"]) && isset($_FILES[$this->postName]['tmp_name'])){ - $this->value = file_get_contents($_FILES[$this->postName]['tmp_name']); + $this->value = file_get_contents(gosa_file_name($_FILES[$this->postName]['tmp_name'])); } if(isset($_POST["{$this->postName}_Remove"])) $this->value =""; } -- 2.30.2