From 2fb9ec4fd0113a8add41319e1e946ef8547dfd06 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:42 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20250 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc index 68fb8972c..baf0af90d 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc @@ -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. */ -- 2.30.2