Code

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

gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_file.inc

index 4c26fe32e92abaddaf0fb8821152aa787c26987c..1e41cd9be48f2cb1d9f8bbf08a486f99c404d88a 100644 (file)
@@ -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 ="";
     }