Code

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

gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index 64bf2a65bfe2a099272a3fd43f3275ec9fa03699..14d4d775766cb189e261da7637641e7795ab3a08 100644 (file)
@@ -909,7 +909,7 @@ class appgroup extends plugin
 
         if(isset($_FILES['folder_image']) && isset($_POST['folder_image_upload'])){
             if($_FILES['folder_image']['error'] == 0 && $_FILES['folder_image']['size'] > 0){
-                $this->edit_entry['ICON'] = file_get_contents($_FILES['folder_image']['tmp_name']);
+                $this->edit_entry['ICON'] = file_get_contents(gosa_file_name($_FILES['folder_image']['tmp_name']));
             }
         }