Code

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

gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc

index 68fb8972ce65ba8bb1a4be79273083b6f70dedb0..baf0af90d8ec66a8eab54b5caffa9349eeea8953 100644 (file)
@@ -68,7 +68,7 @@ class faiTemplateEntry extends plugin
     $display = "";
 
     if(isset($_POST['TmpFileUpload']) && $this->acl_is_writeable("FAItemplateFile")){
-      if($str=file_get_contents($_FILES['FAItemplateFile']['tmp_name'])){
+      if($str=file_get_contents(gosa_file_name($_FILES['FAItemplateFile']['tmp_name']))){
         $this->FAItemplateFile = $str;
 
         /* If we don't have a filename set it from upload filename. */